mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-25 17:27:45 +00:00
2c2a03e5e2
1) Added a new message status to MmsDatabase to signify a pending MMS download which requires APN settings. 2) Added a database method to query MMS messages based on status. 3) Added login to SendReceiveService for processing of MMS pending APN information. 4) Moved all APN/MMS settings into ApnPreferencesActivity and transformed PromptApnActivity into a simple informational activity. 5) Added logic to check for APN settings on send and receive of all MMS (media, group, email) and direct user to PromptApnActivity then ApnPreferencesActivity if necessary. 6) Vocab/grammar adjustments.
44 lines
1.1 KiB
Java
44 lines
1.1 KiB
Java
package org.thoughtcrime.securesms;
|
|
|
|
import android.content.Intent;
|
|
import android.os.Bundle;
|
|
import android.view.View;
|
|
import android.widget.Button;
|
|
|
|
public class PromptMmsActivity extends PassphraseRequiredSherlockActivity {
|
|
|
|
private Button okButton;
|
|
private Button cancelButton;
|
|
|
|
@Override
|
|
public void onCreate(Bundle bundle) {
|
|
super.onCreate(bundle);
|
|
|
|
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();
|
|
}
|
|
});
|
|
}
|
|
|
|
}
|