session-android/src/org/thoughtcrime/securesms/PromptMmsActivity.java

34 lines
924 B
Java
Raw Normal View History

package org.thoughtcrime.securesms;
import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;
import org.thoughtcrime.securesms.preferences.MmsPreferencesActivity;
2019-07-24 12:30:23 +10:00
import network.loki.messenger.R;
2014-06-28 20:40:57 -07:00
public class PromptMmsActivity extends PassphraseRequiredActionBarActivity {
@Override
2018-02-01 19:22:48 -08:00
protected void onCreate(Bundle bundle, boolean ready) {
setContentView(R.layout.prompt_apn_activity);
initializeResources();
}
private void initializeResources() {
2018-02-01 19:22:48 -08:00
Button okButton = findViewById(R.id.ok_button);
Button cancelButton = findViewById(R.id.cancel_button);
okButton.setOnClickListener(v -> {
Intent intent = new Intent(PromptMmsActivity.this, MmsPreferencesActivity.class);
intent.putExtras(PromptMmsActivity.this.getIntent().getExtras());
startActivity(intent);
finish();
});
2018-02-01 19:22:48 -08:00
cancelButton.setOnClickListener(v -> finish());
}
}