mirror of
https://github.com/nix-community/nix-on-droid-app.git
synced 2025-11-08 19:46:10 +01:00
Changed: Check crash log file whenever TermuxActivity is resumed instead of only on app startup
This adds onto 06dbfbdb since receiver would not be registered to receive `ACTION_NOTIFY_APP_CRASH` if `TermuxActivity` was not be in foreground
This commit is contained in:
parent
477b36acd1
commit
cc58ddde31
1 changed files with 4 additions and 5 deletions
|
|
@ -199,11 +199,6 @@ public final class TermuxActivity extends AppCompatActivity implements ServiceCo
|
||||||
|
|
||||||
if (savedInstanceState != null)
|
if (savedInstanceState != null)
|
||||||
mIsActivityRecreated = savedInstanceState.getBoolean(ARG_ACTIVITY_RECREATED, false);
|
mIsActivityRecreated = savedInstanceState.getBoolean(ARG_ACTIVITY_RECREATED, false);
|
||||||
|
|
||||||
// Check if a crash happened on last run of the app or if a plugin crashed and show a
|
|
||||||
// notification with the crash details if it did
|
|
||||||
TermuxCrashUtils.notifyAppCrashFromCrashLogFile(this, LOG_TAG);
|
|
||||||
|
|
||||||
|
|
||||||
// Delete ReportInfo serialized object files from cache older than 14 days
|
// Delete ReportInfo serialized object files from cache older than 14 days
|
||||||
ReportActivity.deleteReportInfoFilesOlderThanXDays(this, 14, false);
|
ReportActivity.deleteReportInfoFilesOlderThanXDays(this, 14, false);
|
||||||
|
|
@ -316,6 +311,10 @@ public final class TermuxActivity extends AppCompatActivity implements ServiceCo
|
||||||
if (mTermuxTerminalViewClient != null)
|
if (mTermuxTerminalViewClient != null)
|
||||||
mTermuxTerminalViewClient.onResume();
|
mTermuxTerminalViewClient.onResume();
|
||||||
|
|
||||||
|
// Check if a crash happened on last run of the app or if a plugin crashed and show a
|
||||||
|
// notification with the crash details if it did
|
||||||
|
TermuxCrashUtils.notifyAppCrashFromCrashLogFile(this, LOG_TAG);
|
||||||
|
|
||||||
mIsOnResumeAfterOnCreate = false;
|
mIsOnResumeAfterOnCreate = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue