2013-09-16 00:55:01 -07:00
|
|
|
package org.thoughtcrime.securesms;
|
|
|
|
|
|
|
|
import android.content.Intent;
|
|
|
|
import android.os.Bundle;
|
2014-12-15 12:25:55 -08:00
|
|
|
import android.support.annotation.NonNull;
|
2013-09-16 00:55:01 -07:00
|
|
|
import android.view.View;
|
|
|
|
import android.widget.Button;
|
|
|
|
|
2015-02-16 20:31:44 -08:00
|
|
|
import org.thoughtcrime.securesms.preferences.MmsPreferencesActivity;
|
2014-12-15 12:25:55 -08:00
|
|
|
import org.thoughtcrime.securesms.crypto.MasterSecret;
|
2015-02-16 20:31:44 -08:00
|
|
|
|
2014-06-28 20:40:57 -07:00
|
|
|
public class PromptMmsActivity extends PassphraseRequiredActionBarActivity {
|
2013-09-16 00:55:01 -07:00
|
|
|
|
|
|
|
private Button okButton;
|
|
|
|
private Button cancelButton;
|
|
|
|
|
|
|
|
@Override
|
2014-12-15 12:25:55 -08:00
|
|
|
protected void onCreate(Bundle bundle, @NonNull MasterSecret masterSecret) {
|
2013-09-16 00:55:01 -07:00
|
|
|
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();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|