MCPcopy Create free account
hub / github.com/M66B/FairEmail / ActivityError

Class ActivityError

app/src/main/java/eu/faircode/email/ActivityError.java:37–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35import java.util.List;
36
37public class ActivityError extends ActivityBase {
38 static final int PI_ERROR = 1;
39 static final int PI_ALERT = 2;
40
41 private TextView tvTitle;
42 private TextView tvMessage;
43 private TextView tvCertificate;
44 private Button btnPassword;
45 private ImageButton ibSetting;
46 private ImageButton ibInfo;
47 private Button btnReload;
48 private Button btnSupport;
49
50 @Override
51 protected void onCreate(Bundle savedInstanceState) {
52 super.onCreate(savedInstanceState);
53
54 setContentView(R.layout.activity_error);
55
56 getSupportActionBar().setDisplayHomeAsUpEnabled(true);
57 getSupportActionBar().setSubtitle(getString(R.string.title_setup_error));
58
59 tvTitle = findViewById(R.id.tvTitle);
60 tvMessage = findViewById(R.id.tvMessage);
61 tvCertificate = findViewById(R.id.tvCertificate);
62 btnPassword = findViewById(R.id.btnPassword);
63 ibSetting = findViewById(R.id.ibSetting);
64 ibInfo = findViewById(R.id.ibInfo);
65 btnReload = findViewById(R.id.btnReload);
66 btnSupport = findViewById(R.id.btnSupport);
67
68 load();
69 }
70
71 @Override
72 protected void onNewIntent(Intent intent) {
73 super.onNewIntent(intent);
74 setIntent(intent);
75 load();
76 }
77
78 @Override
79 public boolean onOptionsItemSelected(MenuItem item) {
80 int itemId = item.getItemId();
81 if (itemId == android.R.id.home) {
82 finish();
83 return true;
84 }
85 return super.onOptionsItemSelected(item);
86 }
87
88 private void load() {
89 Intent intent = getIntent();
90 String type = intent.getStringExtra("type");
91 String title = intent.getStringExtra("title");
92 String message = intent.getStringExtra("message");
93 String provider = intent.getStringExtra("provider");
94 long account = intent.getLongExtra("account", -1L);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected