[Android] Fix auto update denial
Nicolas Pomepuy
git at videolan.org
Fri Aug 9 09:26:01 UTC 2024
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Fri Aug 9 07:30:39 2024 +0200| [de2fb6bf784efaf6130bc045175d8baec85c022a] | committer: Nicolas Pomepuy
Fix auto update denial
> https://code.videolan.org/videolan/vlc-android/commit/de2fb6bf784efaf6130bc045175d8baec85c022a
---
application/vlc-android/src/org/videolan/vlc/gui/MainActivity.kt | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/MainActivity.kt b/application/vlc-android/src/org/videolan/vlc/gui/MainActivity.kt
index b091f59841..8aa47b292b 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/MainActivity.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/MainActivity.kt
@@ -134,7 +134,9 @@ class MainActivity : ContentActivity(),
.setPositiveButton(R.string.yes){ _, _ ->
settings.putSingle(KEY_SHOW_UPDATE, true)
}
- .setNegativeButton(R.string.no, null)
+ .setNegativeButton(R.string.no){ _, _ ->
+ settings.putSingle(KEY_SHOW_UPDATE, false)
+ }
.show()
return at launch
}
More information about the Android
mailing list