Workaround for handling the restart of an already visible task
- If a task is already visible, then startActivity is a no-op and the remote transition that launcher expects to run is not started. As a workaround (until restarts are an actual transition), listen for the case where a task is restarted and invoke the end callbacks Fixes: 286016555 Test: Repro steps on the bug Change-Id: Iec3ab97c8817a5e95399cec90f891d65f369d234
This commit is contained in:
1 parent
1f3c56af5b
commit
57c2a79e47
3 files changed
+84
-3
No files matched your search
@@ -345,11 +345,13 @@ public class QuickstepLauncher extends Launcher {
|
||||
|
||||
@Override
|
||||
public RunnableList startActivitySafely(View v, Intent intent, ItemInfo item) {
|
||||
// Only pause is taskbar controller is not present
|
||||
// Only pause is taskbar controller is not present until the transition (if it exists) ends
|
||||
mHotseatPredictionController.setPauseUIUpdate(getTaskbarUIController() == null);
|
||||
RunnableList result = super.startActivitySafely(v, intent, item);
|
||||
if (getTaskbarUIController() == null && result == null) {
|
||||
mHotseatPredictionController.setPauseUIUpdate(false);
|
||||
if (result == null) {
|
||||
if (getTaskbarUIController() == null) {
|
||||
mHotseatPredictionController.setPauseUIUpdate(false);
|
||||
}
|
||||
} else {
|
||||
result.add(() -> mHotseatPredictionController.setPauseUIUpdate(false));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user