mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-05 16:43:26 +02:00
Added try again to error screen
This commit is contained in:
@@ -44,6 +44,7 @@ public class ActivityError extends ActivityBase {
|
||||
private Button btnPassword;
|
||||
private ImageButton ibSetting;
|
||||
private ImageButton ibInfo;
|
||||
private Button btnReload;
|
||||
private Button btnSupport;
|
||||
|
||||
@Override
|
||||
@@ -60,6 +61,7 @@ public class ActivityError extends ActivityBase {
|
||||
btnPassword = findViewById(R.id.btnPassword);
|
||||
ibSetting = findViewById(R.id.ibSetting);
|
||||
ibInfo = findViewById(R.id.ibInfo);
|
||||
btnReload = findViewById(R.id.btnReload);
|
||||
btnSupport = findViewById(R.id.btnSupport);
|
||||
|
||||
load();
|
||||
@@ -177,6 +179,15 @@ public class ActivityError extends ActivityBase {
|
||||
}
|
||||
});
|
||||
|
||||
btnReload.setVisibility(account > 0 ? View.VISIBLE : View.GONE);
|
||||
btnReload.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
ServiceSynchronize.reload(v.getContext(), account, true, "retry");
|
||||
finish();
|
||||
}
|
||||
});
|
||||
|
||||
btnSupport.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
|
||||
Reference in New Issue
Block a user