Search in sources :

Example 1 with CredentialPreferenceDialog

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);
    }
}
Also used : CredentialsPreference(cx.ring.views.CredentialsPreference) CredentialPreferenceDialog(cx.ring.views.CredentialPreferenceDialog)

Aggregations

CredentialPreferenceDialog (cx.ring.views.CredentialPreferenceDialog)1 CredentialsPreference (cx.ring.views.CredentialsPreference)1