mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Adding TaskViewSimulator for simulating taskView layout on a remote target
1. Tanslating contents of RecentsView instead of recentsView itself. When translating, we keep the current TaskView from moving. This allows the remoteTarget to follow an individual taskView. 2. Removing translationY in recentsView and setting the pivot instead 3. Using TaskViewSimulator for swipe handler. This allows using similar animation creation as Launcher window animation. Change-Id: I0b7b16c367d9d8cd8dd0ed59061e46853e2f8c83
This commit is contained in:
@@ -29,7 +29,6 @@ import android.content.SharedPreferences;
|
||||
import android.os.Bundle;
|
||||
import android.os.CancellationSignal;
|
||||
|
||||
import com.android.launcher3.LauncherState.ScaleAndTranslation;
|
||||
import com.android.launcher3.LauncherStateManager.StateHandler;
|
||||
import com.android.launcher3.config.FeatureFlags;
|
||||
import com.android.launcher3.model.WellbeingModel;
|
||||
@@ -38,7 +37,6 @@ import com.android.launcher3.proxy.ProxyActivityStarter;
|
||||
import com.android.launcher3.proxy.StartActivityParams;
|
||||
import com.android.launcher3.statehandlers.BackButtonAlphaHandler;
|
||||
import com.android.launcher3.statehandlers.DepthController;
|
||||
import com.android.launcher3.touch.PagedOrientationHandler;
|
||||
import com.android.launcher3.uioverrides.RecentsViewStateController;
|
||||
import com.android.launcher3.util.OnboardingPrefs;
|
||||
import com.android.launcher3.util.UiThreadHelper;
|
||||
@@ -204,17 +202,6 @@ public abstract class BaseQuickstepLauncher extends Launcher
|
||||
return new QuickstepOnboardingPrefs(this, sharedPrefs, stateManager);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected ScaleAndTranslation getOverviewScaleAndTranslationForNormalState() {
|
||||
if (SysUINavigationMode.getMode(this) == Mode.NO_BUTTON) {
|
||||
PagedOrientationHandler layoutVertical =
|
||||
((RecentsView)getOverviewPanel()).getPagedViewOrientedState().getOrientationHandler();
|
||||
return layoutVertical.getScaleAndTranslation(getDeviceProfile(),
|
||||
getOverviewPanel());
|
||||
}
|
||||
return super.getOverviewScaleAndTranslationForNormalState();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void useFadeOutAnimationForLauncherStart(CancellationSignal signal) {
|
||||
QuickstepAppTransitionManagerImpl appTransitionManager =
|
||||
@@ -237,6 +224,12 @@ public abstract class BaseQuickstepLauncher extends Launcher
|
||||
}, signal);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float[] getNormalOverviewScaleAndOffset() {
|
||||
return SysUINavigationMode.getMode(this) == Mode.NO_BUTTON
|
||||
? new float[] {1, 1} : new float[] {1.1f, 0};
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDragLayerHierarchyChanged() {
|
||||
onLauncherStateOrFocusChanged();
|
||||
|
||||
Reference in New Issue
Block a user