[Android] Remove showing the action item pin when unlocking the safe mode

Nicolas Pomepuy git at videolan.org
Wed Jul 12 08:30:37 UTC 2023


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Mon Jul 10 13:10:30 2023 +0200| [1110e00667d49b8943e9d0fd8fe60717b31d08fa] | committer: Duncan McNamara

Remove showing the action item pin when unlocking the safe mode

> https://code.videolan.org/videolan/vlc-android/commit/1110e00667d49b8943e9d0fd8fe60717b31d08fa
---

 .../vlc-android/src/org/videolan/vlc/gui/BaseActivity.kt       | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/application/vlc-android/src/org/videolan/vlc/gui/BaseActivity.kt b/application/vlc-android/src/org/videolan/vlc/gui/BaseActivity.kt
index 01976c42bd..5d587fd103 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/BaseActivity.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/BaseActivity.kt
@@ -25,7 +25,6 @@ import androidx.lifecycle.repeatOnLifecycle
 import androidx.window.layout.WindowInfoTracker
 import androidx.window.layout.WindowLayoutInfo
 import kotlinx.coroutines.Dispatchers
-import kotlinx.coroutines.delay
 import kotlinx.coroutines.launch
 import org.videolan.resources.AppContextProvider
 import org.videolan.tools.KeyHelper
@@ -78,15 +77,6 @@ abstract class BaseActivity : AppCompatActivity() {
         }
         PinCodeDelegate.pinUnlocked.observe(this) {
             invalidateOptionsMenu()
-            if (it && !PinCodeDelegate.tipShown) {
-                lifecycleScope.launch(Dispatchers.IO) {
-                    delay(500)
-                    lifecycleScope.launchWhenStarted {
-                        findViewById<View?>(R.id.pin_relocked)?.performLongClick()
-                        PinCodeDelegate.tipShown = true
-                    }
-                }
-            }
         }
     }
 



More information about the Android mailing list