mirror of https://github.com/M66B/FairEmail.git
Load errors
This commit is contained in:
parent
a5da42e925
commit
6a3d5ac24c
|
@ -35,21 +35,36 @@ public class ActivityError extends ActivityBase {
|
||||||
static final int PI_ERROR = 1;
|
static final int PI_ERROR = 1;
|
||||||
static final int PI_ALERT = 2;
|
static final int PI_ALERT = 2;
|
||||||
|
|
||||||
|
private TextView tvTitle;
|
||||||
|
private TextView tvMessage;
|
||||||
|
private Button btnPassword;
|
||||||
|
private ImageButton ibSetting;
|
||||||
|
private ImageButton ibInfo;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
|
||||||
getSupportActionBar().setSubtitle(getString(R.string.title_setup_error));
|
getSupportActionBar().setSubtitle(getString(R.string.title_setup_error));
|
||||||
|
setContentView(R.layout.activity_error);
|
||||||
|
|
||||||
View view = LayoutInflater.from(this).inflate(R.layout.activity_error, null);
|
tvTitle = findViewById(R.id.tvTitle);
|
||||||
setContentView(view);
|
tvMessage = findViewById(R.id.tvMessage);
|
||||||
|
btnPassword = findViewById(R.id.btnPassword);
|
||||||
|
ibSetting = findViewById(R.id.ibSetting);
|
||||||
|
ibInfo = findViewById(R.id.ibInfo);
|
||||||
|
|
||||||
TextView tvTitle = view.findViewById(R.id.tvTitle);
|
load();
|
||||||
TextView tvMessage = view.findViewById(R.id.tvMessage);
|
}
|
||||||
Button btnPassword = view.findViewById(R.id.btnPassword);
|
|
||||||
ImageButton ibSetting = view.findViewById(R.id.ibSetting);
|
|
||||||
ImageButton ibInfo = view.findViewById(R.id.ibInfo);
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onNewIntent(Intent intent) {
|
||||||
|
super.onNewIntent(intent);
|
||||||
|
setIntent(intent);
|
||||||
|
load();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void load() {
|
||||||
Intent intent = getIntent();
|
Intent intent = getIntent();
|
||||||
String type = intent.getStringExtra("type");
|
String type = intent.getStringExtra("type");
|
||||||
String title = intent.getStringExtra("title");
|
String title = intent.getStringExtra("title");
|
||||||
|
|
Loading…
Reference in New Issue