From 3f9d0d24f950517c7b8c5c18a96de3c5a3adefa7 Mon Sep 17 00:00:00 2001 From: Simon Marquis Date: Mon, 30 Apr 2018 21:55:55 +0200 Subject: [PATCH] Fix UI glitch when user becomes authorized Adapter start/stop listening is now only called after read access has been granted to avoid list refresh --- app/build.gradle | 2 +- app/src/main/java/fr/smarquis/appstore/ApplicationsActivity.kt | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index cd279e0..42d88c5 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -8,7 +8,7 @@ apply plugin: 'kotlin-kapt' def versionMajor = 1 def versionMinor = 0 -def versionPatch = 0 +def versionPatch = 1 def versionBuild = 0 android { diff --git a/app/src/main/java/fr/smarquis/appstore/ApplicationsActivity.kt b/app/src/main/java/fr/smarquis/appstore/ApplicationsActivity.kt index c92cc5e..dc3be66 100644 --- a/app/src/main/java/fr/smarquis/appstore/ApplicationsActivity.kt +++ b/app/src/main/java/fr/smarquis/appstore/ApplicationsActivity.kt @@ -224,7 +224,6 @@ class ApplicationsActivity : AppCompatActivity() { startListening() } } - }) } @@ -236,7 +235,6 @@ class ApplicationsActivity : AppCompatActivity() { private fun registerListeners() { applicationAdapter?.registerAdapterDataObserver(dataObserver) - applicationAdapter?.startListening() PackageIntentFilter.register(this, packageIntentFilterReceiver) }