android icon indicating copy to clipboard operation
android copied to clipboard

When trying to add widget to Android 15 screen the widget jumps to the top and cannot be ad

Open danq8 opened this issue 2 years ago • 8 comments

  • Have checked for update to app and also checked it's the same in the beta.
  • Definitely on latest HA
  • Have searched for any other bug reports that say the same thing, but couldn't find any.

Home Assistant Android app version(s):

Android version(s): Android 15 Device model(s): Pixel 6a Home Assistant version: Core 2024.11.1 Supervisor 2024.11.2 Operating System 13.2 Frontend 20241106.2 Stock launcher Last working Home Assistant release (if known):

Description of problem, include YAML if issue is related to notifications: When trying to add a HA widget, when placing on the screen, the widget jumps to the top left and then any attempt to move or resize the widget does nothing, clicking on the widget, or the edit button makes the widget disappear.

Companion App Logs:

11-13 10:48:42.018  6864  6864 D CameraWidget: Broadcast received: 
11-13 10:48:42.018  6864  6864 D CameraWidget: Broadcast action: android.appwidget.action.APPWIDGET_ENABLED
11-13 10:48:42.018  6864  6864 D CameraWidget: AppWidgetId: -1
11-13 10:48:42.020  6864  6864 D CameraWidget: Broadcast received: 
11-13 10:48:42.020  6864  6864 D CameraWidget: Broadcast action: android.appwidget.action.APPWIDGET_UPDATE
11-13 10:48:42.020  6864  6864 D CameraWidget: AppWidgetId: -1
11-13 10:48:42.044  6864  6864 D CameraWidget: Broadcast received: 
11-13 10:48:42.044  6864  6864 D CameraWidget: Broadcast action: android.appwidget.action.APPWIDGET_DELETED
11-13 10:48:42.044  6864  6864 D CameraWidget: AppWidgetId: 47
11-13 10:48:42.047  6864  6864 D CameraWidget: Broadcast received: 
11-13 10:48:42.047  6864  6864 D CameraWidget: Broadcast action: android.appwidget.action.APPWIDGET_DISABLED
11-13 10:48:42.047  6864  6864 D CameraWidget: AppWidgetId: -1
11-13 10:48:43.669  6864  8844 D AidlBufferPool: bufferpool2 0xb4000075b1722af8 : 5(36700160 size) total buffers - 4(29360128 size) used buffers - 1437/1444 (recycle/alloc) - 71/1616 (fetch/transfer)
11-13 10:48:47.308  6864  6864 D IntegrationRepository: isAppLocked(): false. (LockEnabled: false, appActive: false, expireMillis: 1731494914299, currentMillis: 1731494927308)
11-13 10:48:47.366  6864  6864 D IntegrationRepository: isAppLocked(): false. (LockEnabled: false, appActive: false, expireMillis: 1731494914299, currentMillis: 1731494927366)
11-13 10:48:47.366  6864  6864 D IntegrationRepository: setAppActive(): true
11-13 10:48:49.077  6864  8844 D AidlBufferPool: bufferpool2 0xb4000075b1722af8 : 5(36700160 size) total buffers - 4(29360128 size) used buffers - 1519/1526 (recycle/alloc) - 75/1709 (fetch/transfer)
11-13 10:48:49.588  6864  6864 W TextView: onProvideContentCaptureStructure(): calling assumeLayout()
11-13 10:48:49.588  6864  6864 W TextView: onProvideContentCaptureStructure(): calling assumeLayout()
11-13 10:48:50.521  6864  6864 W WindowOnBackDispatcher: sendCancelIfRunning: isInProgress=false callback=android.widget.PopupWindow$PopupDecorView$$ExternalSyntheticLambda1@7e11b71
11-13 10:48:50.526  6864  6894 D LogcatReader: Read logcat for pid 6864
11-13 10:48:50.562  6864  6864 D IntegrationRepository: isAppLocked(): false. (LockEnabled: false, appActive: true, expireMillis: 1731494914299, currentMillis: 1731494930562)
11-13 10:48:50.562  6864  6864 D IntegrationRepository: setAppActive(): true

Screenshot or video of problem:

https://github.com/user-attachments/assets/f309d097-747f-4c14-bce8-f544d8433f94

Additional information:

danq8 avatar Nov 13 '24 10:11 danq8

I am unable to reproduce the widgets get added exactly where i place them. Please provide a recording of the issue and also let us know if you are using the stock launcher on your device.

dshokouhi avatar Nov 13 '24 15:11 dshokouhi

Hi Daniel, Many thanks for taking a look at this. I'm on the stock launcher, nothing much custom on the phone at all. I've attached the video to the main request. Cheers

danq8 avatar Nov 13 '24 15:11 danq8

Just to add I've tried rebooting the phone, and tested other widgets are working as intended. I'll try uninstalling a re-installing the app, just in case. Will write back in a few minutes if that helped.

danq8 avatar Nov 13 '24 15:11 danq8

ok i cannot reproduce here on any of the app widgets on my pixel 9 pro xl.

dshokouhi avatar Nov 13 '24 15:11 dshokouhi

My phone is on the 5th November 2024 update, if that helps.

danq8 avatar Nov 13 '24 15:11 danq8

yup same here

dshokouhi avatar Nov 13 '24 15:11 dshokouhi

OK, I thought I'd try every app/widget on my phone... most work, but it is doing the same thing for BBC weather, CNN, google drive and a couple more mainstream apps as well.... Definitely something odd on Android 15, and if there's a google widget doing it, then guessing it's something further up the chain. I'll see if I can report it direct to Google (y)

danq8 avatar Nov 13 '24 15:11 danq8

OK, there's a workaround, and Google already knows about it... https://www.reddit.com/r/GooglePixel/comments/1g6bpk9/widgets_broken_after_android_15_update/ The "Plus" button was a little hard to find, basically have the app icon on your screen, long press the icon, choose widgets, single tap on the widget you want, and the plus button appears below it. click that and the widget will go to the earliest space it has and place it there.

danq8 avatar Nov 13 '24 15:11 danq8