mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 00:06:47 +00:00
Adding support for listening to end callbacks when launching an intent from Launcher
Also moving various state handling to these end callbacks enstead of relying on resume Bug: 265134143 Test: Verified that the end callback is received Change-Id: I326a99c80154d244c0e49f678717c476602b6240
This commit is contained in:
@@ -155,6 +155,13 @@ public abstract class BaseDraggingActivity extends BaseActivity
|
||||
return wrapper;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActivityOptionsWrapper makeDefaultActivityOptions(int splashScreenStyle) {
|
||||
ActivityOptionsWrapper wrapper = super.makeDefaultActivityOptions(splashScreenStyle);
|
||||
addOnResumeCallback(wrapper.onEndCallback::executeAllAndDestroy);
|
||||
return wrapper;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onStart() {
|
||||
super.onStart();
|
||||
|
||||
Reference in New Issue
Block a user