Fix crash report notification intent
This commit is contained in:
@@ -382,6 +382,9 @@ class SettingsActivity : BaseActivity() {
|
||||
ROUTE_MEDIA_INTEGRATION -> MediaIntegrationSettingsRoute
|
||||
ROUTE_SEARCH_ACTIONS -> SearchActionsSettingsRoute
|
||||
ROUTE_HIDDEN_ITEMS -> HiddenItemsSettingsRoute
|
||||
ROUTE_CRASH_REPORT if (intent.hasExtra(EXTRA_CRASH_REPORT_PATH)) -> {
|
||||
CrashReportRoute(intent.getStringExtra(EXTRA_CRASH_REPORT_PATH)!!)
|
||||
}
|
||||
else -> null
|
||||
}
|
||||
}
|
||||
@@ -392,5 +395,7 @@ class SettingsActivity : BaseActivity() {
|
||||
const val ROUTE_MEDIA_INTEGRATION = "settings/integrations/media"
|
||||
const val ROUTE_SEARCH_ACTIONS = "settings/search/searchactions"
|
||||
const val ROUTE_HIDDEN_ITEMS = "settings/search/hiddenitems"
|
||||
const val ROUTE_CRASH_REPORT = "settings/debug/crashreport"
|
||||
const val EXTRA_CRASH_REPORT_PATH = "crash_report_path"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -119,7 +119,8 @@ public class CrashUtil {
|
||||
|
||||
Intent intent = new Intent();
|
||||
intent.setComponent(new ComponentName(context.getPackageName(), "de.mm20.launcher2.ui.settings.SettingsActivity"));
|
||||
intent.putExtra("de.mm20.launcher2.settings.ROUTE", "settings/debug/crashreporter/report?fileName=" + URLEncoder.encode(filePath, "utf8"));
|
||||
intent.putExtra("de.mm20.launcher2.settings.ROUTE", "settings/debug/crashreport");
|
||||
intent.putExtra("crash_report_path", filePath);
|
||||
intent.setAction(Long.toString(System.currentTimeMillis()));
|
||||
|
||||
PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_IMMUTABLE);
|
||||
|
||||
Reference in New Issue
Block a user