Loading core/java/android/app/ActivityClient.java +2 −1 Original line number Diff line number Diff line Loading @@ -207,7 +207,8 @@ public class ActivityClient { } /** * Returns the activity token below in the same task if it belongs to the same process. * Returns the non-finishing activity token below in the same task if it belongs to the same * process. */ @Nullable public IBinder getActivityTokenBelow(IBinder activityToken) { Loading services/core/java/com/android/server/wm/ActivityClientController.java +3 −1 Original line number Diff line number Diff line Loading @@ -554,7 +554,9 @@ class ActivityClientController extends IActivityClientController.Stub { if (ar == null) { return null; } final ActivityRecord below = ar.getTask().getActivityBelow(ar); // Exclude finishing activity. final ActivityRecord below = ar.getTask().getActivity((r) -> !r.finishing, ar, false /*includeBoundary*/, true /*traverseTopToBottom*/); if (below != null && below.getUid() == ar.getUid()) { return below.appToken.asBinder(); } Loading Loading
core/java/android/app/ActivityClient.java +2 −1 Original line number Diff line number Diff line Loading @@ -207,7 +207,8 @@ public class ActivityClient { } /** * Returns the activity token below in the same task if it belongs to the same process. * Returns the non-finishing activity token below in the same task if it belongs to the same * process. */ @Nullable public IBinder getActivityTokenBelow(IBinder activityToken) { Loading
services/core/java/com/android/server/wm/ActivityClientController.java +3 −1 Original line number Diff line number Diff line Loading @@ -554,7 +554,9 @@ class ActivityClientController extends IActivityClientController.Stub { if (ar == null) { return null; } final ActivityRecord below = ar.getTask().getActivityBelow(ar); // Exclude finishing activity. final ActivityRecord below = ar.getTask().getActivity((r) -> !r.finishing, ar, false /*includeBoundary*/, true /*traverseTopToBottom*/); if (below != null && below.getUid() == ar.getUid()) { return below.appToken.asBinder(); } Loading