saulhdev / ZimLX

Open Source and free launcher for Android
Other
151 stars 26 forks source link

Sleep using timeout crashes the app #58

Closed phanirithvij closed 4 years ago

phanirithvij commented 5 years ago

Describe the bug Title To Reproduce Steps to reproduce the behavior:

  1. Hold home screen
  2. Click on widgets
  3. Scroll down to the end
  4. Add ZimLX action widget to home screen
  5. Select the action to be Sleep (timeout)
  6. Click on the widget
  7. App requests update settings permission
  8. Click again
  9. App crashes

Expected behavior It is supposed to sleep after a few seconds

Smartphone (please complete the following information):

Additional context

Build version: 0.6.2b 
Build date: 1980-01-01 00:00:00 
Current date: 2019-07-08 10:14:23 
Device: Xiaomi Redmi Note 4 

Stack trace:  
java.lang.RuntimeException: Unable to start activity ComponentInfo{org.zimmob.zimlx/org.zimmob.zimlx.gestures.ui.RunHandlerActivity}: android.content.ActivityNotFoundException: Unable to find explicit activity class {org.zimmob.zimlx/org.zimmob.zimlx.gestures.handlers.SleepTimeoutActivity}; have you declared this activity in your AndroidManifest.xml?
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2747)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2808)
    at android.app.ActivityThread.-wrap12(ActivityThread.java)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1541)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:165)
    at android.app.ActivityThread.main(ActivityThread.java:6375)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:912)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:802)
Caused by: android.content.ActivityNotFoundException: Unable to find explicit activity class {org.zimmob.zimlx/org.zimmob.zimlx.gestures.handlers.SleepTimeoutActivity}; have you declared this activity in your AndroidManifest.xml?
    at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1812)
    at android.app.Instrumentation.execStartActivity(Instrumentation.java:1525)
    at android.app.Activity.startActivityForResult(Activity.java:4396)
    at com.android.launcher3.Launcher.startActivityForResult(Launcher.java:1515)
    at android.app.Activity.startActivityForResult(Activity.java:4355)
    at android.app.Activity.startActivity(Activity.java:4679)
    at android.app.Activity.startActivity(Activity.java:4647)
    at org.zimmob.zimlx.gestures.handlers.SleepGestureHandlerTimeout.onGestureTrigger(SleepGestureHandler.kt:130)
    at org.zimmob.zimlx.gestures.GestureHandler.onGestureTrigger$default(GestureHandler.kt:38)
    at org.zimmob.zimlx.gestures.ui.RunHandlerActivity.triggerGesture(RunHandlerActivity.kt:58)
    at org.zimmob.zimlx.gestures.ui.RunHandlerActivity.onCreate(RunHandlerActivity.kt:50)
    at android.app.Activity.performCreate(Activity.java:6845)
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2700)
    ... 9 more