mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 04:35:57 +00:00
Scroll to debug settings
This commit is contained in:
parent
119ade3d01
commit
37a5533393
1 changed files with 7 additions and 0 deletions
|
@ -511,6 +511,13 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|||
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
||||
prefs.edit().putBoolean("debug", checked).apply();
|
||||
cardDebug.setVisibility(checked || BuildConfig.DEBUG ? View.VISIBLE : View.GONE);
|
||||
if (checked)
|
||||
view.post(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
view.scrollTo(0, swDebug.getTop());
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue