aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-06-30 22:12:23 -0700
committerAllan Wang <me@allanwang.ca>2017-06-30 22:12:23 -0700
commitcf2a648e61290fe36453a56371c0d39e9edff8ff (patch)
tree12aad62f35a94c9f9b060d85d307618a9f7d9ebe /app
parente923730a265a68e5d696eaa23a7a3caca80f0826 (diff)
downloadfrost-cf2a648e61290fe36453a56371c0d39e9edff8ff.tar.gz
frost-cf2a648e61290fe36453a56371c0d39e9edff8ff.tar.bz2
frost-cf2a648e61290fe36453a56371c0d39e9edff8ff.zip
Remove throwing before restart
Diffstat (limited to 'app')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/MainActivity.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/MainActivity.kt b/app/src/main/kotlin/com/pitchedapps/frost/MainActivity.kt
index 5744f987..85b70a60 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/MainActivity.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/MainActivity.kt
@@ -372,7 +372,7 @@ class MainActivity : BaseActivity(), FrostWebViewSearch.SearchContract {
REQUEST_NAV -> frostNavigationBar()
REQUEST_SEARCH -> invalidateOptionsMenu()
REQUEST_RESTART_APPLICATION -> { //completely restart application
- L.eThrow("Restart Application Requested")
+ L.d("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)