[Predictive Back] Enable predictive back in AndroidManifest.xml
Calling "getApplicationInfo().setEnableOnBackInvokedCallback(true)" is only suggested in tests. Fix: 337985862 Flag: NONE - release feature fix Test: manual Change-Id: I336bdbe31c726b518d9342b1d39ef9e92f4dd498
This commit is contained in:
1 parent
e58dad0821
commit
45d79db4d7
2 files changed
+1
-4
No files matched your search
@@ -54,6 +54,7 @@
|
||||
android:protectionLevel="signature|privileged" />
|
||||
|
||||
<application android:backupAgent="com.android.launcher3.LauncherBackupAgent"
|
||||
android:enableOnBackInvokedCallback="true"
|
||||
android:fullBackupOnly="true"
|
||||
android:fullBackupContent="@xml/backupscheme"
|
||||
android:hardwareAccelerated="true"
|
||||
|
||||
@@ -681,10 +681,6 @@ public class QuickstepLauncher extends Launcher implements RecentsViewContainer,
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
// Back dispatcher is registered in {@link BaseActivity#onCreate}. For predictive back to
|
||||
// work, we must opt-in BEFORE registering back dispatcher. So we need to call
|
||||
// setEnableOnBackInvokedCallback() before super.onCreate()
|
||||
getApplicationInfo().setEnableOnBackInvokedCallback(true);
|
||||
super.onCreate(savedInstanceState);
|
||||
if (savedInstanceState != null) {
|
||||
mPendingSplitSelectInfo = ObjectWrapper.unwrap(
|
||||
|
||||
Reference in new issue
Block a user