mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-31 20:25:38 +00:00
Refactoring
This commit is contained in:
parent
ab9c1c75ec
commit
351af84a86
1 changed files with 11 additions and 13 deletions
|
@ -82,10 +82,11 @@ public class FragmentSetup extends FragmentBase {
|
|||
private CardView cardManual;
|
||||
|
||||
private Button btnAccount;
|
||||
|
||||
private Button btnIdentity;
|
||||
|
||||
private TextView tvExchangeSupport;
|
||||
private TextView tvIdentityWhat;
|
||||
private Button btnInbox;
|
||||
private TextView tvFree;
|
||||
private TextView tvNoComposable;
|
||||
|
||||
|
@ -106,8 +107,6 @@ public class FragmentSetup extends FragmentBase {
|
|||
private TextView tvBatteryUsage;
|
||||
private TextView tvSyncStopped;
|
||||
|
||||
private Button btnInbox;
|
||||
|
||||
private Button btnApp;
|
||||
|
||||
private Group grpInexactAlarms;
|
||||
|
@ -151,10 +150,11 @@ public class FragmentSetup extends FragmentBase {
|
|||
cardManual = view.findViewById(R.id.cardManual);
|
||||
|
||||
btnAccount = view.findViewById(R.id.btnAccount);
|
||||
|
||||
btnIdentity = view.findViewById(R.id.btnIdentity);
|
||||
|
||||
tvExchangeSupport = view.findViewById(R.id.tvExchangeSupport);
|
||||
tvIdentityWhat = view.findViewById(R.id.tvIdentityWhat);
|
||||
btnInbox = view.findViewById(R.id.btnInbox);
|
||||
tvFree = view.findViewById(R.id.tvFree);
|
||||
tvNoComposable = view.findViewById(R.id.tvNoComposable);
|
||||
|
||||
|
@ -175,8 +175,6 @@ public class FragmentSetup extends FragmentBase {
|
|||
tvBatteryUsage = view.findViewById(R.id.tvBatteryUsage);
|
||||
tvSyncStopped = view.findViewById(R.id.tvSyncStopped);
|
||||
|
||||
btnInbox = view.findViewById(R.id.btnInbox);
|
||||
|
||||
btnApp = view.findViewById(R.id.btnApp);
|
||||
|
||||
grpInexactAlarms = view.findViewById(R.id.grpInexactAlarms);
|
||||
|
@ -413,6 +411,13 @@ public class FragmentSetup extends FragmentBase {
|
|||
}
|
||||
});
|
||||
|
||||
btnInbox.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
((FragmentBase) getParentFragment()).finish();
|
||||
}
|
||||
});
|
||||
|
||||
tvFree.setPaintFlags(tvFree.getPaintFlags() | Paint.UNDERLINE_TEXT_FLAG);
|
||||
tvFree.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
|
@ -538,13 +543,6 @@ public class FragmentSetup extends FragmentBase {
|
|||
});
|
||||
}
|
||||
|
||||
btnInbox.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
((FragmentBase) getParentFragment()).finish();
|
||||
}
|
||||
});
|
||||
|
||||
final Intent app = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);
|
||||
app.setData(Uri.parse("package:" + getContext().getPackageName()));
|
||||
btnApp.setOnClickListener(new View.OnClickListener() {
|
||||
|
|
Loading…
Reference in a new issue