mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-25 09:17:44 +00:00
0ff99258ac
Fixes #2239 Closes #27923 // FREEBIE
46 lines
1.3 KiB
Java
46 lines
1.3 KiB
Java
package org.thoughtcrime.securesms;
|
|
|
|
import android.content.Intent;
|
|
import android.os.Bundle;
|
|
import android.support.annotation.NonNull;
|
|
import android.view.View;
|
|
import android.widget.Button;
|
|
|
|
import org.thoughtcrime.securesms.preferences.MmsPreferencesActivity;
|
|
import org.thoughtcrime.securesms.crypto.MasterSecret;
|
|
|
|
public class PromptMmsActivity extends PassphraseRequiredActionBarActivity {
|
|
|
|
private Button okButton;
|
|
private Button cancelButton;
|
|
|
|
@Override
|
|
protected void onCreate(Bundle bundle, @NonNull MasterSecret masterSecret) {
|
|
setContentView(R.layout.prompt_apn_activity);
|
|
initializeResources();
|
|
}
|
|
|
|
private void initializeResources() {
|
|
this.okButton = (Button)findViewById(R.id.ok_button);
|
|
this.cancelButton = (Button)findViewById(R.id.cancel_button);
|
|
|
|
this.okButton.setOnClickListener(new View.OnClickListener() {
|
|
@Override
|
|
public void onClick(View v) {
|
|
Intent intent = new Intent(PromptMmsActivity.this, MmsPreferencesActivity.class);
|
|
intent.putExtras(PromptMmsActivity.this.getIntent().getExtras());
|
|
startActivity(intent);
|
|
finish();
|
|
}
|
|
});
|
|
|
|
this.cancelButton.setOnClickListener(new View.OnClickListener() {
|
|
@Override
|
|
public void onClick(View v) {
|
|
finish();
|
|
}
|
|
});
|
|
}
|
|
|
|
}
|