Use flag secure to hide from recents

This commit is contained in:
M66B
2019-10-05 16:09:52 +02:00
parent 41f5425ffa
commit 6f82756fb3
6 changed files with 32 additions and 22 deletions

View File

@@ -73,7 +73,8 @@ public class FragmentOptionsPrivacy extends FragmentBase implements SharedPrefer
swNoHistory.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
prefs.edit().putBoolean("no_history", checked).apply();
prefs.edit().putBoolean("no_history", checked).commit(); // apply won't work here
restart();
}
});