Search in sources :

Example 1 with QsbAnimationController

use of com.saggitt.omega.qsb.QsbAnimationController in project Neo-Launcher by NeoApplications.

the class OmegaLauncherCallbacks method onCreate.

@Override
public void onCreate(Bundle savedInstanceState) {
    mPrefs = Utilities.getPrefs(mLauncher);
    mOverlayCallbacks = new OverlayCallbackImpl(mLauncher);
    mLauncherClient = new CustomLauncherClient(mLauncher, mOverlayCallbacks, getClientOptions(mPrefs));
    mQsbController = new QsbAnimationController(mLauncher);
    mOverlayCallbacks.setClient(mLauncherClient);
    mUiInformation.putInt("system_ui_visibility", mLauncher.getWindow().getDecorView().getSystemUiVisibility());
    applyFeedTheme(false);
    WallpaperColorInfo instance = WallpaperColorInfo.getInstance(mLauncher);
    instance.addOnChangeListener(this);
    onExtractedColorsChanged(instance);
    mPrefs.registerOnSharedPreferenceChangeListener(this);
    predictionUiStateManager = PredictionUiStateManager.INSTANCE.get(mLauncher);
    predictionUiStateManager.setTargetAppsView(mLauncher.getAppsView());
    if (FeatureFlags.REFLECTION_FORCE_OVERVIEW_MODE) {
        predictionUiStateManager.switchClient(Client.OVERVIEW);
    }
}
Also used : CustomLauncherClient(com.saggitt.omega.util.CustomLauncherClient) QsbAnimationController(com.saggitt.omega.qsb.QsbAnimationController) WallpaperColorInfo(com.android.launcher3.uioverrides.WallpaperColorInfo)

Aggregations

WallpaperColorInfo (com.android.launcher3.uioverrides.WallpaperColorInfo)1 QsbAnimationController (com.saggitt.omega.qsb.QsbAnimationController)1 CustomLauncherClient (com.saggitt.omega.util.CustomLauncherClient)1