Added explicit finish() to prefActivity because we see the occasional crash on system exit, which is new...

This commit is contained in:
Graham Jones
2022-03-04 19:41:09 +00:00
parent 4017cfac79
commit 8371171be4
2 changed files with 3 additions and 0 deletions

View File

@@ -150,6 +150,8 @@ public class PrefActivity extends PreferenceActivity implements SharedPreference
Intent i;
i = new Intent(this, StartupActivity.class);
startActivity(i);
Log.i(TAG,"onSharedPreferenceChanged() - finishing PrefActivity");
finish();
} else {
Log.i(TAG, "OnSharedPreferenceChanged(): SMS Alarm disabled so do not need permissions");
}
@@ -212,6 +214,7 @@ public class PrefActivity extends PreferenceActivity implements SharedPreference
protected void onStop() {
super.onStop();
mUtil.writeToSysLogFile("PrefActvity.onStop()");
Log.i(TAG,"onStop()");
}
/**