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:
Winson Chung
2021-04-09 14:00:25 -07:00
parent 74aacfd407
commit 2b093941e1
12 changed files with 123 additions and 39 deletions
@@ -42,4 +42,11 @@ public class ObjectWrapper<T> extends Binder {
public static IBinder wrap(Object obj) {
return new ObjectWrapper<>(obj);
}
public static <T> T unwrap(IBinder binder) {
if (binder instanceof ObjectWrapper) {
return ((ObjectWrapper<T>) binder).get();
}
return null;
}
}