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

Commit 93c710b9 authored by Sukesh Ram's avatar Sukesh Ram Committed by Brian Isganitis
Browse files

Added debug menu option for testing secondary display.

Test: manual
Fix: 233639924
Change-Id: Iaca90a1391078d56bd57fa5de097f34ec0425866
(cherry picked from commit aed1b074)
parent 211496e3
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -63,6 +63,7 @@ import com.android.launcher3.R;
import com.android.launcher3.Utilities;
import com.android.launcher3.config.FeatureFlags;
import com.android.launcher3.config.FlagTogglerPrefUi;
import com.android.launcher3.secondarydisplay.SecondaryDisplayLauncher;
import com.android.launcher3.uioverrides.plugins.PluginManagerWrapper;
import com.android.launcher3.util.OnboardingPrefs;

@@ -369,6 +370,16 @@ public class DeveloperOptionsFragment extends PreferenceFragmentCompat {
            return true;
        });
        sandboxCategory.addPreference(launchSandboxModeTutorialPreference);

        Preference launchSecondaryDisplayPreference = new Preference(context);
        launchSecondaryDisplayPreference.setKey("launchSecondaryDisplay");
        launchSecondaryDisplayPreference.setTitle("Launch Secondary Display");
        launchSecondaryDisplayPreference.setSummary("Launch secondary display activity");
        launchSecondaryDisplayPreference.setOnPreferenceClickListener(preference -> {
            startActivity(new Intent(context, SecondaryDisplayLauncher.class));
            return true;
        });
        sandboxCategory.addPreference(launchSecondaryDisplayPreference);
    }

    private void addOnboardingPrefsCatergory() {