mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-28 02:37:16 +00:00
Disable debug mode after repair / before restart
This commit is contained in:
parent
82de2ae8de
commit
21acf2b970
1 changed files with 3 additions and 0 deletions
|
@ -633,6 +633,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|||
new SimpleTask<Void>() {
|
||||
@Override
|
||||
protected void onPostExecute(Bundle args) {
|
||||
prefs.edit().remove("debug").apply();
|
||||
ToastEx.makeText(v.getContext(), R.string.title_completed, Toast.LENGTH_LONG).show();
|
||||
}
|
||||
|
||||
|
@ -710,6 +711,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|||
ibRoom.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
prefs.edit().remove("debug").commit();
|
||||
ApplicationEx.restart(v.getContext());
|
||||
}
|
||||
});
|
||||
|
@ -748,6 +750,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|||
ibSqliteCache.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
prefs.edit().remove("debug").commit();
|
||||
ApplicationEx.restart(v.getContext());
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue