mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-03 10:32:39 +00:00
Improve passphrase and onboarding UI. Abstract out routing.
1) Update the create, prompt, and change passphrase activities. They are no longer dialog themed, and should look a little less ugly. 2) Update the import DB activity to be less ugly and more robust. 3) Abstract all of the state handling stuff out of ConversationListActivity. This is now handled by RoutingActivity, which all launch intents move through.
This commit is contained in:
@@ -38,7 +38,6 @@ public class PassphrasePromptActivity extends PassphraseActivity {
|
||||
|
||||
private EditText passphraseText;
|
||||
private Button okButton;
|
||||
private Button cancelButton;
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
@@ -51,13 +50,12 @@ public class PassphrasePromptActivity extends PassphraseActivity {
|
||||
private void initializeResources() {
|
||||
passphraseText = (EditText)findViewById(R.id.passphrase_edit);
|
||||
okButton = (Button)findViewById(R.id.ok_button);
|
||||
cancelButton = (Button)findViewById(R.id.cancel_button);
|
||||
|
||||
okButton.setOnClickListener(new OkButtonClickListener());
|
||||
cancelButton.setOnClickListener(new CancelButtonClickListener());
|
||||
}
|
||||
|
||||
private class OkButtonClickListener implements OnClickListener {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
try {
|
||||
Editable text = passphraseText.getText();
|
||||
@@ -74,16 +72,9 @@ public class PassphrasePromptActivity extends PassphraseActivity {
|
||||
}
|
||||
}
|
||||
|
||||
private class CancelButtonClickListener implements OnClickListener {
|
||||
public void onClick(View v) {
|
||||
finish();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void cleanup() {
|
||||
this.passphraseText = null;
|
||||
System.gc();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user