PINE64
Issue with Widgets on Android - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4)
+--- Forum: Android on Pine A64(+) (https://forum.pine64.org/forumdisplay.php?fid=5)
+--- Thread: Issue with Widgets on Android (/showthread.php?tid=918)



Issue with Widgets on Android - fsa317 - 05-03-2016

Most widgets, when I try to place them on my home screens hang and fail.  I found this in the log (similar messages for lots of widgets):

This is consistent whenever a widget has a "configuration" screen after placing it.  Widgets without a configuration screen seem to work OK. One example widget is the MSN Money app, when you try to add the stock widget after selecting the stock symbol it crashes.

Code:
05-03 15:20:07.758: E/AndroidRuntime(18457): Process: com.android.launcher3, PID: 18457
05-03 15:20:07.758: E/AndroidRuntime(18457): java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.android.launcher3.CellLayout.findCellForSpan(int[], int, int)' on a null object reference
05-03 15:20:07.758: E/AndroidRuntime(18457):     at com.android.launcher3.Launcher.completeAddAppWidget(Launcher.java:1623)
05-03 15:20:07.758: E/AndroidRuntime(18457):     at com.android.launcher3.Launcher.completeAdd(Launcher.java:727)
05-03 15:20:07.758: E/AndroidRuntime(18457):     at com.android.launcher3.Launcher.finishBindingItems(Launcher.java:4516)
05-03 15:20:07.758: E/AndroidRuntime(18457):     at com.android.launcher3.LauncherModel$LoaderTask$10.run(LauncherModel.java:2764)
05-03 15:20:07.758: E/AndroidRuntime(18457):     at com.android.launcher3.DeferredHandler$Impl.handleMessage(DeferredHandler.java:51)
05-03 15:20:07.758: E/AndroidRuntime(18457):     at android.os.Handler.dispatchMessage(Handler.java:102)
05-03 15:20:07.758: E/AndroidRuntime(18457):     at android.os.Looper.loop(Looper.java:135)
05-03 15:20:07.758: E/AndroidRuntime(18457):     at android.app.ActivityThread.main(ActivityThread.java:5254)
05-03 15:20:07.758: E/AndroidRuntime(18457):     at java.lang.reflect.Method.invoke(Native Method)
05-03 15:20:07.758: E/AndroidRuntime(18457):     at java.lang.reflect.Method.invoke(Method.java:372)
05-03 15:20:07.758: E/AndroidRuntime(18457):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:920)
05-03 15:20:07.758: E/AndroidRuntime(18457):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:715)