use of cx.ring.views.CredentialPreferenceDialog in project ring-client-android by savoirfairelinux.
the class SecurityAccountFragment method onDisplayPreferenceDialog.
@Override
public void onDisplayPreferenceDialog(Preference preference) {
if (getFragmentManager().findFragmentByTag(DIALOG_FRAGMENT_TAG) != null) {
return;
}
if (preference instanceof CredentialsPreference) {
CredentialPreferenceDialog preferenceDialog = CredentialPreferenceDialog.newInstance(preference.getKey());
preferenceDialog.setTargetFragment(this, 0);
preferenceDialog.show(getFragmentManager(), DIALOG_FRAGMENT_TAG);
} else {
super.onDisplayPreferenceDialog(preference);
}
}
Aggregations