Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 46f57689 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Check activity start result code to properly return whther...

Merge "Check activity start result code to properly return whther startActivityFromRecents was successful." into tm-qpr-dev am: 5cc7eec0 am: 38b6ab21

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20141833



Change-Id: If7fedfe3c5addd19d20afefcdd1bf5725c8176d4
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 9f60c21e 38b6ab21
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -250,8 +250,9 @@ public class ActivityManagerWrapper {
    public boolean startActivityFromRecents(int taskId, ActivityOptions options) {
        try {
            Bundle optsBundle = options == null ? null : options.toBundle();
            getService().startActivityFromRecents(taskId, optsBundle);
            return true;
            return ActivityManager.isStartResultSuccessful(
                    getService().startActivityFromRecents(
                            taskId, optsBundle));
        } catch (Exception e) {
            return false;
        }