Smojify / Smojify-Android

1 stars 0 forks source link

Widget doesn't sync #4

Closed thdelmas closed 1 year ago

thdelmas commented 1 year ago
01/19 13:24:18: Launching 'app' on HUAWEI NEM-L51.
Install successfully finished in 7 s 703 ms.
$ adb shell am start -n "com.example.smojifypropre/com.example.smojifypropre.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Connected to process 16662 on device 'huawei-nem_l51-MQH4C16C08003896'.
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
I/: power log dlsym ok
I/art: Late-enabling -Xcheck:jni
I/art: Reinit property: dalvik.vm.checkjni= false
W/System: ClassLoader referenced unknown path: /data/app/com.example.smojifypropre-1/lib/arm64
I/HwCust: Constructor found for class android.app.HwCustActivityImpl
I/HwCust: Constructor found for class android.app.HwCustHwWallpaperManagerImpl
W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter androidx.vectordrawable.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
E/HW-JPEG-DEC: [HME_JPEG_DEC_Delete](3321): HME_JPEG_DEC_Delete: decoder_ctx=null
I/HwSecImmHelper: mSecurityInputMethodService is null
I/HwPointEventFilter: do not support AFT because of no config
I/OpenGLRenderer: Initialized EGL, version 1.4
W/linker: /vendor/lib64/libhwuibp.so: unused DT entry: type 0xf arg 0xe3a
I/hwaps: JNI_OnLoad
E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.example.smojifypropre, PID: 16662
    java.lang.ArrayIndexOutOfBoundsException: length=0; index=0
        at com.example.smojifypropre.MainActivity$onCreate$1.onInitialized$lambda$0(MainActivity.kt:88)
        at com.example.smojifypropre.MainActivity$onCreate$1.$r8$lambda$Z9FjnDMGivnghKkZabKghDzCwMo(MainActivity.kt)
        at com.example.smojifypropre.MainActivity$onCreate$1$$ExternalSyntheticLambda0.onClick(D8$$SyntheticClass)
        at android.view.View.performClick(View.java:5646)
        at com.google.android.material.button.MaterialButton.performClick(MaterialButton.java:1219)
        at android.view.View$PerformClick.run(View.java:22473)
        at android.os.Handler.handleCallback(Handler.java:761)
        at android.os.Handler.dispatchMessage(Handler.java:98)
        at android.os.Looper.loop(Looper.java:156)
        at android.app.ActivityThread.main(ActivityThread.java:6517)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:942)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:832)
I/Process: Sending signal. PID: 16662 SIG: 9
thdelmas commented 1 year ago

The widget reacts to click and show up the menu but don't display the current song neither works the spotify controls to stop and skip the music

thdelmas commented 1 year ago

Solved my mistake