Refactoring

pull/194/merge
M66B 3 years ago
parent ab9c1c75ec
commit 351af84a86

@ -82,10 +82,11 @@ public class FragmentSetup extends FragmentBase {
private CardView cardManual; private CardView cardManual;
private Button btnAccount; private Button btnAccount;
private Button btnIdentity; private Button btnIdentity;
private TextView tvExchangeSupport; private TextView tvExchangeSupport;
private TextView tvIdentityWhat; private TextView tvIdentityWhat;
private Button btnInbox;
private TextView tvFree; private TextView tvFree;
private TextView tvNoComposable; private TextView tvNoComposable;
@ -106,8 +107,6 @@ public class FragmentSetup extends FragmentBase {
private TextView tvBatteryUsage; private TextView tvBatteryUsage;
private TextView tvSyncStopped; private TextView tvSyncStopped;
private Button btnInbox;
private Button btnApp; private Button btnApp;
private Group grpInexactAlarms; private Group grpInexactAlarms;
@ -151,10 +150,11 @@ public class FragmentSetup extends FragmentBase {
cardManual = view.findViewById(R.id.cardManual); cardManual = view.findViewById(R.id.cardManual);
btnAccount = view.findViewById(R.id.btnAccount); btnAccount = view.findViewById(R.id.btnAccount);
btnIdentity = view.findViewById(R.id.btnIdentity); btnIdentity = view.findViewById(R.id.btnIdentity);
tvExchangeSupport = view.findViewById(R.id.tvExchangeSupport); tvExchangeSupport = view.findViewById(R.id.tvExchangeSupport);
tvIdentityWhat = view.findViewById(R.id.tvIdentityWhat); tvIdentityWhat = view.findViewById(R.id.tvIdentityWhat);
btnInbox = view.findViewById(R.id.btnInbox);
tvFree = view.findViewById(R.id.tvFree); tvFree = view.findViewById(R.id.tvFree);
tvNoComposable = view.findViewById(R.id.tvNoComposable); tvNoComposable = view.findViewById(R.id.tvNoComposable);
@ -175,8 +175,6 @@ public class FragmentSetup extends FragmentBase {
tvBatteryUsage = view.findViewById(R.id.tvBatteryUsage); tvBatteryUsage = view.findViewById(R.id.tvBatteryUsage);
tvSyncStopped = view.findViewById(R.id.tvSyncStopped); tvSyncStopped = view.findViewById(R.id.tvSyncStopped);
btnInbox = view.findViewById(R.id.btnInbox);
btnApp = view.findViewById(R.id.btnApp); btnApp = view.findViewById(R.id.btnApp);
grpInexactAlarms = view.findViewById(R.id.grpInexactAlarms); 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.setPaintFlags(tvFree.getPaintFlags() | Paint.UNDERLINE_TEXT_FLAG);
tvFree.setOnClickListener(new View.OnClickListener() { tvFree.setOnClickListener(new View.OnClickListener() {
@Override @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); final Intent app = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);
app.setData(Uri.parse("package:" + getContext().getPackageName())); app.setData(Uri.parse("package:" + getContext().getPackageName()));
btnApp.setOnClickListener(new View.OnClickListener() { btnApp.setOnClickListener(new View.OnClickListener() {

Loading…
Cancel
Save