Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when entering app settings and exiting #21

Open
sjl872964789 opened this issue Dec 12, 2019 · 0 comments
Open

Crash when entering app settings and exiting #21

sjl872964789 opened this issue Dec 12, 2019 · 0 comments

Comments

@sjl872964789
Copy link

sjl872964789 commented Dec 12, 2019

Describe the bug
When I open the notable and exit, and then enter the notable settings menu through the drop-down menu, the application crashes. Later I found out that this problem only happens when the global settings game_mode_on property is set to 1.

Device: [galaxy a6s]
OS version: [Android 8.1.0]
App version: [1.6.0]

Steps to reproduce the behavior
adb shell settings put global game_mode_on 1
Open notable
Press Back
Drop-down menu
Click on Notable
Click on SETTINGS
Press Back
Carsh

Carsh logcat

Shutting down VM
 FATAL EXCEPTION: main
 Process: com.icechen1.notable, PID: 11717
 java.lang.RuntimeException: Unable to pause activity {com.icechen1.notable/com.icechen1.notable.library.PreferencesActivity}: java.lang.SecurityException: Unable to start service Intent { cmp=com.icechen1.notable/.library.NotificationService_ (has extras) }: Unable to launch app com.icechen1.notable/10197 for service Intent { cmp=com.icechen1.notable/.library.NotificationService_ }: com.icechen1.notable is restricted
 	at android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:4095)
 	at android.app.ActivityThread.performPauseActivity(ActivityThread.java:4061)
 	at android.app.ActivityThread.performPauseActivity(ActivityThread.java:4035)
 	at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:4009)
 	at android.app.ActivityThread.-wrap15(Unknown Source:0)
 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1672)
 	at android.os.Handler.dispatchMessage(Handler.java:106)
 	at android.os.Looper.loop(Looper.java:164)
 	at android.app.ActivityThread.main(ActivityThread.java:6746)
 	at java.lang.reflect.Method.invoke(Native Method)
 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
 Caused by: java.lang.SecurityException: Unable to start service Intent { cmp=com.icechen1.notable/.library.NotificationService_ (has extras) }: Unable to launch app com.icechen1.notable/10197 for service Intent { cmp=com.icechen1.notable/.library.NotificationService_ }: com.icechen1.notable is restricted
 	at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1517)
 	at android.app.ContextImpl.startService(ContextImpl.java:1477)
 	at android.content.ContextWrapper.startService(ContextWrapper.java:650)
 	at com.icechen1.notable.library.PreferencesActivity.onPause(Unknown Source:36)
 	at android.app.Activity.performPause(Activity.java:7168)
 	at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1409)
 	at android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:4084)
 	... 11 more

Screenshots
Recorded video see attachment
record.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant