Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 54fec9c2 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "[Large screen] SplitListener may not provide correct information" into...

Merge "[Large screen] SplitListener may not provide correct information" into sc-v2-dev am: 672185ff

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16183654

Change-Id: I0ec9b59130b9e5b5849cad1bd095823b45204ed3
parents ba9f4f66 672185ff
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -451,6 +451,11 @@ public class SettingsActivity extends SettingsBaseActivity
            return false;
            return false;
        }
        }


        if (intent.getBooleanExtra(SettingsHomepageActivity.EXTRA_IS_FROM_SETTINGS_HOMEPAGE,
                /* defaultValue */ false)) {
            return false;
        }

        if (TextUtils.equals(intent.getAction(), Intent.ACTION_CREATE_SHORTCUT)) {
        if (TextUtils.equals(intent.getAction(), Intent.ACTION_CREATE_SHORTCUT)) {
            // Returns false to show full screen for Intent.ACTION_CREATE_SHORTCUT because
            // Returns false to show full screen for Intent.ACTION_CREATE_SHORTCUT because
            // - Launcher startActivityForResult for Intent.ACTION_CREATE_SHORTCUT and activity
            // - Launcher startActivityForResult for Intent.ACTION_CREATE_SHORTCUT and activity
+5 −0
Original line number Original line Diff line number Diff line
@@ -63,6 +63,10 @@ public class SettingsHomepageActivity extends FragmentActivity implements


    private static final String TAG = "SettingsHomepageActivity";
    private static final String TAG = "SettingsHomepageActivity";


    // Additional extra of Settings#ACTION_SETTINGS_LARGE_SCREEN_DEEP_LINK.
    // Put true value to the intent when startActivity for a deep link intent from this Activity.
    public static final String EXTRA_IS_FROM_SETTINGS_HOMEPAGE = "is_from_settings_homepage";

    // Additional extra of Settings#ACTION_SETTINGS_LARGE_SCREEN_DEEP_LINK.
    // Additional extra of Settings#ACTION_SETTINGS_LARGE_SCREEN_DEEP_LINK.
    // Set & get Uri of the Intent separately to prevent failure of Intent#ParseUri.
    // Set & get Uri of the Intent separately to prevent failure of Intent#ParseUri.
    public static final String EXTRA_SETTINGS_LARGE_SCREEN_DEEP_LINK_INTENT_DATA =
    public static final String EXTRA_SETTINGS_LARGE_SCREEN_DEEP_LINK_INTENT_DATA =
@@ -264,6 +268,7 @@ public class SettingsHomepageActivity extends FragmentActivity implements
        // Sender of intent may want to send intent extra data to the destination of targetIntent.
        // Sender of intent may want to send intent extra data to the destination of targetIntent.
        targetIntent.replaceExtras(intent);
        targetIntent.replaceExtras(intent);


        targetIntent.putExtra(EXTRA_IS_FROM_SETTINGS_HOMEPAGE, true);
        targetIntent.putExtra(SettingsActivity.EXTRA_IS_FROM_SLICE, false);
        targetIntent.putExtra(SettingsActivity.EXTRA_IS_FROM_SLICE, false);


        targetIntent.setData(intent.getParcelableExtra(
        targetIntent.setData(intent.getParcelableExtra(