Unverified Commit 4483765b authored by Mygod's avatar Mygod Committed by GitHub

Fix listenForPackageChanges

parent 62375a57
......@@ -179,7 +179,7 @@ class App : Application() {
filter.addAction(Intent.ACTION_PACKAGE_REMOVED)
filter.addDataScheme("package")
val result = broadcastReceiver { _, intent ->
if (intent.action != Intent.ACTION_PACKAGE_REMOVED ||
if (intent.action == Intent.ACTION_PACKAGE_REMOVED ||
!intent.getBooleanExtra(Intent.EXTRA_REPLACING, false)) callback()
}
app.registerReceiver(result, filter)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment