abstracting fallback views to support container instead of activity
Test: Built and tested locally Flag: NONE just abstracting in this cl Bug:292269949 Change-Id: I0ce5efb4f193211216430f373605107c87de2c1a
This commit is contained in:
1 parent
f0123c9129
commit
f29dc7c5ec
28 files changed
+515
-194
No files matched your search
@@ -26,6 +26,7 @@ import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCH
|
||||
import static com.android.launcher3.util.Executors.MAIN_EXECUTOR;
|
||||
import static com.android.launcher3.util.Executors.UI_HELPER_EXECUTOR;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.app.ActivityOptions;
|
||||
import android.app.PendingIntent;
|
||||
import android.content.ActivityNotFoundException;
|
||||
@@ -46,6 +47,7 @@ import android.view.Display;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.View.AccessibilityDelegate;
|
||||
import android.view.Window;
|
||||
import android.view.WindowInsets;
|
||||
import android.view.WindowInsetsController;
|
||||
import android.view.inputmethod.InputMethodManager;
|
||||
@@ -80,6 +82,7 @@ import com.android.launcher3.util.PackageManagerHelper;
|
||||
import com.android.launcher3.util.Preconditions;
|
||||
import com.android.launcher3.util.RunnableList;
|
||||
import com.android.launcher3.util.SplitConfigurationOptions;
|
||||
import com.android.launcher3.util.SystemUiController;
|
||||
import com.android.launcher3.util.ViewCache;
|
||||
import com.android.launcher3.widget.picker.model.WidgetPickerDataProvider;
|
||||
|
||||
@@ -172,7 +175,16 @@ public interface ActivityContext {
|
||||
/**
|
||||
* The root view to support drag-and-drop and popup support.
|
||||
*/
|
||||
BaseDragLayer getDragLayer();
|
||||
BaseDragLayer<?> getDragLayer();
|
||||
|
||||
/**
|
||||
* @see Activity#getWindow()
|
||||
* @return Window
|
||||
*/
|
||||
@Nullable
|
||||
default Window getWindow() {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* The all apps container, if it exists in this context.
|
||||
@@ -216,6 +228,11 @@ public interface ActivityContext {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
default SystemUiController getSystemUiController() {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Handler for actions taken on drop targets that require launcher
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user