|
|
|
@ -31,6 +31,8 @@ import android.widget.Toast;
|
|
|
|
|
import org.thoughtcrime.securesms.crypto.InvalidPassphraseException;
|
|
|
|
|
import org.thoughtcrime.securesms.crypto.MasterSecret;
|
|
|
|
|
import org.thoughtcrime.securesms.crypto.MasterSecretUtil;
|
|
|
|
|
import org.thoughtcrime.securesms.util.DynamicLanguage;
|
|
|
|
|
import org.thoughtcrime.securesms.util.DynamicTheme;
|
|
|
|
|
import org.thoughtcrime.securesms.util.TextSecurePreferences;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -41,6 +43,9 @@ import org.thoughtcrime.securesms.util.TextSecurePreferences;
|
|
|
|
|
|
|
|
|
|
public class PassphraseChangeActivity extends PassphraseActivity {
|
|
|
|
|
|
|
|
|
|
private DynamicTheme dynamicTheme = new DynamicTheme();
|
|
|
|
|
private DynamicLanguage dynamicLanguage = new DynamicLanguage();
|
|
|
|
|
|
|
|
|
|
private EditText originalPassphrase;
|
|
|
|
|
private EditText newPassphrase;
|
|
|
|
|
private EditText repeatPassphrase;
|
|
|
|
@ -50,6 +55,8 @@ public class PassphraseChangeActivity extends PassphraseActivity {
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void onCreate(Bundle savedInstanceState) {
|
|
|
|
|
dynamicTheme.onCreate(this);
|
|
|
|
|
dynamicLanguage.onCreate(this);
|
|
|
|
|
super.onCreate(savedInstanceState);
|
|
|
|
|
|
|
|
|
|
setContentView(R.layout.change_passphrase_activity);
|
|
|
|
@ -57,6 +64,13 @@ public class PassphraseChangeActivity extends PassphraseActivity {
|
|
|
|
|
initializeResources();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void onResume() {
|
|
|
|
|
super.onResume();
|
|
|
|
|
dynamicTheme.onResume(this);
|
|
|
|
|
dynamicLanguage.onResume(this);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void initializeResources() {
|
|
|
|
|
this.originalPassphraseLabel = (TextView) findViewById(R.id.old_passphrase_label);
|
|
|
|
|
this.originalPassphrase = (EditText) findViewById(R.id.old_passphrase );
|
|
|
|
|