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

Commit 8afcf705 authored by Adam Powell's avatar Adam Powell Committed by Android Git Automerger
Browse files

am 7fde8e2b: Merge "Be more tolerant in TaskStackBuilder" into jb-dev

* commit '7fde8e2b':
  Be more tolerant in TaskStackBuilder
parents 7ce7fe3b 7fde8e2b
Loading
Loading
Loading
Loading
+3 −9
Original line number Diff line number Diff line
@@ -161,18 +161,12 @@ public class TaskStackBuilder {
            ActivityInfo info = pm.getActivityInfo(
                    new ComponentName(mSourceContext, sourceActivityClass), 0);
            String parentActivity = info.parentActivityName;
            while (parentActivity != null) {
                Intent parent = new Intent().setComponent(
                        new ComponentName(mSourceContext, parentActivity));
            while (parent != null) {
                mIntents.add(insertAt, parent);
                info = pm.getActivityInfo(parent.getComponent(), 0);
                parentActivity = info.parentActivityName;
                if (parentActivity != null) {
                    parent = new Intent().setComponent(
                            new ComponentName(mSourceContext, parentActivity));
                } else {
                    parent = null;
                }
            }
        } catch (NameNotFoundException e) {
            Log.e(TAG, "Bad ComponentName while traversing activity parent metadata");