mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-17 09:38:19 +00:00
Removing some dependencies on Activity
> Removing activtiy from overlay callbacks > Removing usage on activtiyLifecycleCallbacks and managing the callbacks ourselves Bug: 306225896 Test: Existing tests cover the lifecycle changes Flag: N/A Change-Id: I79941e364328eecdc8a72cac4d35b75d50a25319
This commit is contained in:
@@ -15,16 +15,12 @@
|
||||
*/
|
||||
package com.android.systemui.plugins.shared;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.app.Application;
|
||||
import android.os.Bundle;
|
||||
|
||||
import java.io.PrintWriter;
|
||||
|
||||
/**
|
||||
* Interface to control the overlay on Launcher
|
||||
*/
|
||||
public interface LauncherOverlayManager extends Application.ActivityLifecycleCallbacks {
|
||||
public interface LauncherOverlayManager {
|
||||
|
||||
default void onDeviceProvideChanged() { }
|
||||
|
||||
@@ -41,26 +37,15 @@ public interface LauncherOverlayManager extends Application.ActivityLifecycleCal
|
||||
|
||||
default void hideOverlay(int duration) { }
|
||||
|
||||
@Override
|
||||
default void onActivityCreated(Activity activity, Bundle bundle) { }
|
||||
default void onActivityStarted() { }
|
||||
|
||||
@Override
|
||||
default void onActivityStarted(Activity activity) { }
|
||||
default void onActivityResumed() { }
|
||||
|
||||
@Override
|
||||
default void onActivityResumed(Activity activity) { }
|
||||
default void onActivityPaused() { }
|
||||
|
||||
@Override
|
||||
default void onActivityPaused(Activity activity) { }
|
||||
default void onActivityStopped() { }
|
||||
|
||||
@Override
|
||||
default void onActivityStopped(Activity activity) { }
|
||||
|
||||
@Override
|
||||
default void onActivitySaveInstanceState(Activity activity, Bundle bundle) { }
|
||||
|
||||
@Override
|
||||
default void onActivityDestroyed(Activity activity) { }
|
||||
default void onActivityDestroyed() { }
|
||||
|
||||
interface LauncherOverlay {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user