diff options
author | Allan Wang <me@allanwang.ca> | 2017-10-29 13:17:31 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-29 13:17:31 -0400 |
commit | d82a9b9e2965b3e674aa0e654cfca55398a508a7 (patch) | |
tree | 944a46eac64e7a2595f6ad7b438cfdce6ed91b14 /app/src/main/kotlin/com/pitchedapps/frost/services/UpdateReceiver.kt | |
parent | ca12899e10da6e900499b7c4b99cc700cd5b9176 (diff) | |
download | frost-d82a9b9e2965b3e674aa0e654cfca55398a508a7.tar.gz frost-d82a9b9e2965b3e674aa0e654cfca55398a508a7.tar.bz2 frost-d82a9b9e2965b3e674aa0e654cfca55398a508a7.zip |
fix/weakRef (#452)
* Add activity context wrapper for images
* Remove unused receiver
* Add action check
* Add image activity logging
* Do not log image url
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/services/UpdateReceiver.kt')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/services/UpdateReceiver.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/services/UpdateReceiver.kt b/app/src/main/kotlin/com/pitchedapps/frost/services/UpdateReceiver.kt index 9e53889e..989ac127 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/services/UpdateReceiver.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/services/UpdateReceiver.kt @@ -13,8 +13,8 @@ import com.pitchedapps.frost.utils.Prefs */ class UpdateReceiver : BroadcastReceiver() { - //todo check action warning override fun onReceive(context: Context, intent: Intent) { + if (intent.action != Intent.ACTION_MY_PACKAGE_REPLACED) return L.d("Frost has updated") context.scheduleNotifications(Prefs.notificationFreq) //Update notifications } |