pguyot / Einstein

NewtonOS running on other operating systems
GNU General Public License v2.0
415 stars 56 forks source link

Android 9 lacks options menu #86

Open daemonspudguy opened 4 years ago

daemonspudguy commented 4 years ago

Basic Information

There is no options menu for Android 9.

Description of issue

The settings are inaccessible. It says "Einstein has stopped" and no notification ever shows up.

Expected behaviour

Notification with options

Steps to reproduce issue

Launch app.

daemonspudguy commented 4 years ago

Have a logcat:

FATAL EXCEPTION: main Process: com.newtonforever.einstein:remote, PID: 20110 android.app.RemoteServiceException: Bad notification for startForeground: java.lang.RuntimeException: invalid channel for service notification: Notification(channel=null pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0x40 color=0x00000000 vis=PRIVATE) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1906) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6936) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:870)