mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 21:58:52 +02:00
Extra
This commit is contained in:
@@ -126,7 +126,6 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
||||
private SwitchCompat swCleanupAttachments;
|
||||
private Button btnCleanup;
|
||||
private TextView tvLastCleanup;
|
||||
private Button btnMore;
|
||||
private SwitchCompat swProtocol;
|
||||
private SwitchCompat swLogInfo;
|
||||
private SwitchCompat swDebug;
|
||||
@@ -278,7 +277,6 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
||||
swCleanupAttachments = view.findViewById(R.id.swCleanupAttachments);
|
||||
btnCleanup = view.findViewById(R.id.btnCleanup);
|
||||
tvLastCleanup = view.findViewById(R.id.tvLastCleanup);
|
||||
btnMore = view.findViewById(R.id.btnMore);
|
||||
swProtocol = view.findViewById(R.id.swProtocol);
|
||||
swLogInfo = view.findViewById(R.id.swLogInfo);
|
||||
swDebug = view.findViewById(R.id.swDebug);
|
||||
@@ -646,14 +644,6 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
||||
}
|
||||
});
|
||||
|
||||
btnMore.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(getContext());
|
||||
lbm.sendBroadcast(new Intent(ActivitySetup.ACTION_SETUP_MORE));
|
||||
}
|
||||
});
|
||||
|
||||
swLogInfo.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
||||
@Override
|
||||
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
||||
|
||||
@@ -113,6 +113,7 @@ public class FragmentSetup extends FragmentBase {
|
||||
|
||||
private Button btnApp;
|
||||
private Button btnDelete;
|
||||
private Button btnMore;
|
||||
private Button btnSupport;
|
||||
|
||||
private Group grpInexactAlarms;
|
||||
@@ -184,6 +185,7 @@ public class FragmentSetup extends FragmentBase {
|
||||
|
||||
btnApp = view.findViewById(R.id.btnApp);
|
||||
btnDelete = view.findViewById(R.id.btnDelete);
|
||||
btnMore = view.findViewById(R.id.btnMore);
|
||||
btnSupport = view.findViewById(R.id.btnSupport);
|
||||
|
||||
grpInexactAlarms = view.findViewById(R.id.grpInexactAlarms);
|
||||
@@ -600,6 +602,14 @@ public class FragmentSetup extends FragmentBase {
|
||||
}
|
||||
});
|
||||
|
||||
btnMore.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(getContext());
|
||||
lbm.sendBroadcast(new Intent(ActivitySetup.ACTION_SETUP_MORE));
|
||||
}
|
||||
});
|
||||
|
||||
grpSupport.setVisibility(
|
||||
Helper.hasValidFingerprint(getContext()) || BuildConfig.DEBUG
|
||||
? View.VISIBLE : View.GONE);
|
||||
|
||||
Reference in New Issue
Block a user