Add support for swiping back to the shortcut that launched the activity
Bug: 129067201 Test: Open a shortcut on the workspace, go home Change-Id: If5d3c3e8e93f09af50aa4994094657347890ef45 Signed-off-by: Winson Chung <winsonc@google.com>
This commit is contained in:
1 parent
74aacfd407
commit
2b093941e1
12 files changed
+123
-39
No files matched your search
@@ -75,9 +75,8 @@ public final class ActivityTracker<T extends BaseActivity> {
|
||||
private boolean handleIntent(T activity, Intent intent, boolean alreadyOnHome) {
|
||||
if (intent != null && intent.getExtras() != null) {
|
||||
IBinder stateBinder = intent.getExtras().getBinder(EXTRA_SCHEDULER_CALLBACK);
|
||||
if (stateBinder instanceof ObjectWrapper) {
|
||||
SchedulerCallback<T> handler =
|
||||
((ObjectWrapper<SchedulerCallback>) stateBinder).get();
|
||||
SchedulerCallback<T> handler = ObjectWrapper.unwrap(stateBinder);
|
||||
if (handler != null) {
|
||||
if (!handler.init(activity, alreadyOnHome)) {
|
||||
intent.getExtras().remove(EXTRA_SCHEDULER_CALLBACK);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user