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

Commit 66f2b353 authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Adding a utility class to simplify main process initialization.

Change-Id: I796cf758d2a25cf8fd5f9a9b78a7977fd54ca451
parent a0693d63
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -595,8 +595,9 @@ public class LauncherAppTransitionManagerImpl extends LauncherAppTransitionManag
                                         Runnable finishedCallback) {
                Handler handler = mLauncher.getWindow().getDecorView().getHandler();
                postAtFrontOfQueueAsynchronously(handler, () -> {
                    if ((Utilities.getPrefs(mLauncher).getBoolean("pref_use_screenshot_animation",
                            true) && mLauncher.isInState(LauncherState.OVERVIEW))
                    if ((Utilities.getPrefs(mLauncher)
                            .getBoolean("pref_use_screenshot_for_swipe_up", false)
                            && mLauncher.isInState(LauncherState.OVERVIEW))
                            || !isLauncherInSetOfOpeningTargets(targets)) {
                        // We use a separate transition for Overview mode. And we can skip the
                        // animation in cases where Launcher is not in the set of opening targets.
+1 −1
Original line number Diff line number Diff line
@@ -210,7 +210,7 @@ public class OtherActivityTouchConsumer extends ContextWrapper implements TouchC
    }

    private boolean isUsingScreenShot() {
        return Utilities.getPrefs(this).getBoolean("pref_use_screenshot_animation", true);
        return Utilities.getPrefs(this).getBoolean("pref_use_screenshot_for_swipe_up", false);
    }

    /**
+3 −0
Original line number Diff line number Diff line
@@ -101,6 +101,9 @@
    <!-- Name of a subclass of com.android.launcher3.util.InstantAppResolver. Can be empty. -->
    <string name="instant_app_resolver_class" translatable="false"></string>

    <!-- Name of a main process initializer class. -->
    <string name="main_process_initializer_class" translatable="false"></string>

    <!-- Package name of the default wallpaper picker. -->
    <string name="wallpaper_picker_package" translatable="false"></string>

+0 −4
Original line number Diff line number Diff line
@@ -294,10 +294,6 @@ public class Launcher extends BaseActivity
        }
        TraceHelper.beginSection("Launcher-onCreate");

        if (mLauncherCallbacks != null) {
            mLauncherCallbacks.preOnCreate();
        }

        WallpaperColorInfo wallpaperColorInfo = WallpaperColorInfo.getInstance(this);
        wallpaperColorInfo.setOnThemeChangeListener(this);
        overrideTheme(wallpaperColorInfo.isDark(), wallpaperColorInfo.supportsDarkText());
+0 −1
Original line number Diff line number Diff line
@@ -37,7 +37,6 @@ public interface LauncherCallbacks {
     * Activity life-cycle methods. These methods are triggered after
     * the code in the corresponding Launcher method is executed.
     */
    void preOnCreate();
    void onCreate(Bundle savedInstanceState);
    void onResume();
    void onStart();
Loading