aboutsummaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-06-30 20:39:39 -0700
committerAllan Wang <me@allanwang.ca>2017-06-30 20:39:39 -0700
commita5ea70cd8fbc1f4fb15742d810698a7caef0eb26 (patch)
treec2a39ad37e6074ae58dc708e66f6e7dfbbd66e04 /app/src/main
parent1811531d6934f4eadfca70b30afa2dac76400bef (diff)
downloadfrost-a5ea70cd8fbc1f4fb15742d810698a7caef0eb26.tar.gz
frost-a5ea70cd8fbc1f4fb15742d810698a7caef0eb26.tar.bz2
frost-a5ea70cd8fbc1f4fb15742d810698a7caef0eb26.zip
Ensure crashlytics sends report
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/MainActivity.kt1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/MainActivity.kt b/app/src/main/kotlin/com/pitchedapps/frost/MainActivity.kt
index 9094c58e..5744f987 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/MainActivity.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/MainActivity.kt
@@ -372,6 +372,7 @@ class MainActivity : BaseActivity(), FrostWebViewSearch.SearchContract {
REQUEST_NAV -> frostNavigationBar()
REQUEST_SEARCH -> invalidateOptionsMenu()
REQUEST_RESTART_APPLICATION -> { //completely restart application
+ L.eThrow("Restart Application Requested")
val intent = packageManager.getLaunchIntentForPackage(packageName)
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK or Intent.FLAG_ACTIVITY_NEW_TASK)
val pending = PendingIntent.getActivity(this, 666, intent, PendingIntent.FLAG_CANCEL_CURRENT)