mirror of
https://github.com/He4eT/yamf_launcher.git
synced 2026-05-04 17:37:25 +00:00
Appearance: swipe not run
This commit is contained in:
parent
6b3d396631
commit
b3774350e6
1 changed files with 3 additions and 11 deletions
|
|
@ -145,25 +145,16 @@ class MainActivity : AppCompatActivity(), SharedPreferences.OnSharedPreferenceCh
|
|||
|
||||
setHomeListeners()
|
||||
|
||||
// Task to update the app menu every 5 seconds
|
||||
// Task to update the app menu every 15 seconds
|
||||
lifecycleScope.launch {
|
||||
lifecycle.repeatOnLifecycle(Lifecycle.State.STARTED) {
|
||||
while (true) {
|
||||
refreshAppMenu()
|
||||
delay(5000)
|
||||
delay(15000)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Task to update the weather every 10 minutes
|
||||
lifecycleScope.launch(Dispatchers.IO) {
|
||||
repeatOnLifecycle(Lifecycle.State.STARTED) {
|
||||
while (true) {
|
||||
updateWeather()
|
||||
delay(600000)
|
||||
}
|
||||
}
|
||||
}
|
||||
setupApps()
|
||||
}
|
||||
|
||||
|
|
@ -1180,6 +1171,7 @@ class MainActivity : AppCompatActivity(), SharedPreferences.OnSharedPreferenceCh
|
|||
}
|
||||
}
|
||||
else if (deltaX > 0 && abs(deltaX) > swipeThreshold && abs(velocityX) > swipeVelocityThreshold && !sharedPreferenceManager.isGestureEnabled("right")) {
|
||||
canLaunchShortcut = false
|
||||
if (gestureUtils.isAccessibilityServiceEnabled(
|
||||
ScreenLockService::class.java
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue