1
0
Fork 0
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:
M66B 2021-05-13 08:21:45 +02:00
parent 119ade3d01
commit 37a5533393

View file

@ -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());
}
});
}
});