Merge "Removes unused mAwaitingDelegateResponse" into tm-dev
This commit is contained in:
@@ -1158,9 +1158,7 @@ public class ChooserActivity extends ResolverActivity implements
|
|||||||
-1);
|
-1);
|
||||||
// Action bar is user-independent, always start as primary
|
// Action bar is user-independent, always start as primary
|
||||||
safelyStartActivityAsUser(ti, getPersonalProfileUserHandle());
|
safelyStartActivityAsUser(ti, getPersonalProfileUserHandle());
|
||||||
if (!mAwaitingDelegateResponse) {
|
finish();
|
||||||
finish();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
b.setId(R.id.chooser_nearby_button);
|
b.setId(R.id.chooser_nearby_button);
|
||||||
@@ -1182,9 +1180,7 @@ public class ChooserActivity extends ResolverActivity implements
|
|||||||
-1);
|
-1);
|
||||||
// Action bar is user-independent, always start as primary
|
// Action bar is user-independent, always start as primary
|
||||||
safelyStartActivityAsUser(ti, getPersonalProfileUserHandle());
|
safelyStartActivityAsUser(ti, getPersonalProfileUserHandle());
|
||||||
if (!mAwaitingDelegateResponse) {
|
finish();
|
||||||
finish();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
b.setId(R.id.chooser_edit_button);
|
b.setId(R.id.chooser_edit_button);
|
||||||
@@ -2231,9 +2227,7 @@ public class ChooserActivity extends ResolverActivity implements
|
|||||||
TargetInfo clonedTarget = selectedTarget.cloneFilledIn(matchingIntent, 0);
|
TargetInfo clonedTarget = selectedTarget.cloneFilledIn(matchingIntent, 0);
|
||||||
if (super.onTargetSelected(clonedTarget, false)) {
|
if (super.onTargetSelected(clonedTarget, false)) {
|
||||||
updateModelAndChooserCounts(clonedTarget);
|
updateModelAndChooserCounts(clonedTarget);
|
||||||
if (!mAwaitingDelegateResponse) {
|
finish();
|
||||||
finish();
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -210,7 +210,7 @@ public class ResolverActivity extends Activity implements
|
|||||||
|
|
||||||
private UserHandle mWorkProfileUserHandle;
|
private UserHandle mWorkProfileUserHandle;
|
||||||
|
|
||||||
protected boolean mAwaitingDelegateResponse;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the string resource to be used as a label for the link to the resolver activity for an
|
* Get the string resource to be used as a label for the link to the resolver activity for an
|
||||||
@@ -682,9 +682,7 @@ public class ResolverActivity extends Activity implements
|
|||||||
mProfileSwitchMessage = null;
|
mProfileSwitchMessage = null;
|
||||||
|
|
||||||
onTargetSelected(dri, false);
|
onTargetSelected(dri, false);
|
||||||
if (!mAwaitingDelegateResponse) {
|
finish();
|
||||||
finish();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -974,7 +972,7 @@ public class ResolverActivity extends Activity implements
|
|||||||
}
|
}
|
||||||
final Intent intent = getIntent();
|
final Intent intent = getIntent();
|
||||||
if ((intent.getFlags() & FLAG_ACTIVITY_NEW_TASK) != 0 && !isVoiceInteraction()
|
if ((intent.getFlags() & FLAG_ACTIVITY_NEW_TASK) != 0 && !isVoiceInteraction()
|
||||||
&& !mResolvingHome && !mRetainInOnStop && !mAwaitingDelegateResponse) {
|
&& !mResolvingHome && !mRetainInOnStop) {
|
||||||
// This resolver is in the unusual situation where it has been
|
// This resolver is in the unusual situation where it has been
|
||||||
// launched at the top of a new task. We don't let it be added
|
// launched at the top of a new task. We don't let it be added
|
||||||
// to the recent tasks shown to the user, and we need to make sure
|
// to the recent tasks shown to the user, and we need to make sure
|
||||||
@@ -1143,9 +1141,7 @@ public class ResolverActivity extends Activity implements
|
|||||||
mMultiProfilePagerAdapter.getActiveListAdapter().hasFilteredItem()
|
mMultiProfilePagerAdapter.getActiveListAdapter().hasFilteredItem()
|
||||||
? MetricsProto.MetricsEvent.ACTION_HIDE_APP_DISAMBIG_APP_FEATURED
|
? MetricsProto.MetricsEvent.ACTION_HIDE_APP_DISAMBIG_APP_FEATURED
|
||||||
: MetricsProto.MetricsEvent.ACTION_HIDE_APP_DISAMBIG_NONE_FEATURED);
|
: MetricsProto.MetricsEvent.ACTION_HIDE_APP_DISAMBIG_NONE_FEATURED);
|
||||||
if (!mAwaitingDelegateResponse) {
|
finish();
|
||||||
finish();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2365,9 +2361,7 @@ public class ResolverActivity extends Activity implements
|
|||||||
.getItem(selections[0].getIndex());
|
.getItem(selections[0].getIndex());
|
||||||
if (ra.onTargetSelected(ti, false)) {
|
if (ra.onTargetSelected(ti, false)) {
|
||||||
ra.mPickOptionRequest = null;
|
ra.mPickOptionRequest = null;
|
||||||
if (!ra.mAwaitingDelegateResponse) {
|
ra.finish();
|
||||||
ra.finish();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user