Adding support for overlay and corresponding plugin to Launcher

Updating various task callbacks to handle overlays

Change-Id: I80077508ad35c31269c873f51f0105302a9e6a5d
This commit is contained in:
Sunny Goyal
2019-09-06 10:36:54 -07:00
parent 9a82ca3054
commit b1d7de25f8
19 changed files with 335 additions and 208 deletions

View File

@@ -16,7 +16,6 @@
package com.android.launcher3;
import android.content.Intent;
import android.os.Bundle;
import java.io.FileDescriptor;
@@ -36,31 +35,8 @@ public interface LauncherCallbacks {
* the code in the corresponding Launcher method is executed.
*/
void onCreate(Bundle savedInstanceState);
void onResume();
void onStart();
void onStop();
void onPause();
void onDestroy();
void onSaveInstanceState(Bundle outState);
void onActivityResult(int requestCode, int resultCode, Intent data);
void onRequestPermissionsResult(int requestCode, String[] permissions,
int[] grantResults);
void onAttachedToWindow();
void onDetachedFromWindow();
void dump(String prefix, FileDescriptor fd, PrintWriter w, String[] args);
void onHomeIntent(boolean internalStateHandled);
boolean handleBackPressed();
void onTrimMemory(int level);
/**
* Called when the launcher state changed
*/
default void onStateChanged() { }
/*
* Extension points for providing custom behavior on certain user interactions.
*/
void onLauncherProviderChange();
/**
* Starts a search with {@param initialQuery}. Return false if search was not started.