Merge "Guard double-showing of user credentials dialog" into nyc-dev am: 1dea763
am: 73925bf
* commit '73925bfe5456da274617d8c3fba32d2858ca8959':
Guard double-showing of user credentials dialog
Change-Id: I21964972bd9434ae71491bf637e7b494cc2ddbae
This commit is contained in:
@@ -104,11 +104,13 @@ public class UserCredentialsSettings extends OptionsMenuFragment implements OnIt
|
|||||||
final Bundle args = new Bundle();
|
final Bundle args = new Bundle();
|
||||||
args.putParcelable(ARG_CREDENTIAL, item);
|
args.putParcelable(ARG_CREDENTIAL, item);
|
||||||
|
|
||||||
final CredentialDialogFragment frag = new CredentialDialogFragment();
|
if (target.getFragmentManager().findFragmentByTag(TAG) == null) {
|
||||||
|
final DialogFragment frag = new CredentialDialogFragment();
|
||||||
frag.setTargetFragment(target, /* requestCode */ -1);
|
frag.setTargetFragment(target, /* requestCode */ -1);
|
||||||
frag.setArguments(args);
|
frag.setArguments(args);
|
||||||
frag.show(target.getFragmentManager(), TAG);
|
frag.show(target.getFragmentManager(), TAG);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Dialog onCreateDialog(Bundle savedInstanceState) {
|
public Dialog onCreateDialog(Bundle savedInstanceState) {
|
||||||
|
|||||||
Reference in New Issue
Block a user