FeatureFlag: quick scrub is now quick switch
- Scale down current task and translate it to the left - Translate previous task in from the left - This is a toggle; quick switch again returns to the first task Currently this is implemented by repurposing onQuickScrub(progress) to update the positions of the first two pages. This makes tracking velocity a bit difficult; if we want to go down this path in the long run we should probably track velocity properly on MotionEvents. Change-Id: I4445b5f08b6e88e71cbb5e30b1f1d45c5f1edc68
This commit is contained in:
1 parent
f107c9ef6d
commit
50876bfac7
10 files changed
+221
-27
No files matched your search
@@ -22,9 +22,6 @@ import android.content.Context;
|
||||
import android.content.SharedPreferences;
|
||||
import android.provider.Settings;
|
||||
|
||||
import androidx.annotation.GuardedBy;
|
||||
import androidx.annotation.Keep;
|
||||
|
||||
import com.android.launcher3.Utilities;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@@ -32,6 +29,9 @@ import java.util.List;
|
||||
import java.util.SortedMap;
|
||||
import java.util.TreeMap;
|
||||
|
||||
import androidx.annotation.GuardedBy;
|
||||
import androidx.annotation.Keep;
|
||||
|
||||
/**
|
||||
* Defines a set of flags used to control various launcher behaviors.
|
||||
*
|
||||
@@ -87,6 +87,9 @@ abstract class BaseFlags {
|
||||
// trying to make them fit the orientation the device is in.
|
||||
public static final boolean OVERVIEW_USE_SCREENSHOT_ORIENTATION = true;
|
||||
|
||||
public static final TogglableFlag QUICK_SWITCH = new TogglableFlag("QUICK_SWITCH", false,
|
||||
"Swiping right on the nav bar while in an app switches to the previous app");
|
||||
|
||||
/**
|
||||
* Feature flag to handle define config changes dynamically instead of killing the process.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user