Added option to restore app state on start

This commit is contained in:
M66B
2022-06-24 12:15:41 +02:00
parent 758d9aa47a
commit 6381c85fdd
6 changed files with 58 additions and 5 deletions

View File

@@ -1664,6 +1664,9 @@ public class FragmentCompose extends FragmentBase {
onAction(R.id.action_save, extras, "pause");
}
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
prefs.edit().putLong("last_composing", working).apply();
ConnectivityManager cm = Helper.getSystemService(context, ConnectivityManager.class);
cm.unregisterNetworkCallback(networkCallback);