File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -161,18 +161,12 @@ public TaskStackBuilder addParentStack(Class<?> sourceActivityClass) {
161161 ActivityInfo info = pm .getActivityInfo (
162162 new ComponentName (mSourceContext , sourceActivityClass ), 0 );
163163 String parentActivity = info .parentActivityName ;
164- Intent parent = new Intent (). setComponent (
165- new ComponentName ( mSourceContext , parentActivity ));
166- while ( parent != null ) {
164+ while ( parentActivity != null ) {
165+ Intent parent = new Intent (). setComponent (
166+ new ComponentName ( mSourceContext , parentActivity ));
167167 mIntents .add (insertAt , parent );
168168 info = pm .getActivityInfo (parent .getComponent (), 0 );
169169 parentActivity = info .parentActivityName ;
170- if (parentActivity != null ) {
171- parent = new Intent ().setComponent (
172- new ComponentName (mSourceContext , parentActivity ));
173- } else {
174- parent = null ;
175- }
176170 }
177171 } catch (NameNotFoundException e ) {
178172 Log .e (TAG , "Bad ComponentName while traversing activity parent metadata" );
You can’t perform that action at this time.
0 commit comments