Widgets: fixes from the pre-release audit

Clock:
- Weather requests send only "FlexeraLauncher" as their user agent, no
  longer Android's, which names the phone model and build.
- Celsius or Fahrenheit follows Android's own temperature setting where
  there is one (Android 14 and newer), else the locale.
- Failed weather requests back off (5, 10, 20, 40, then 45 minutes)
  instead of retrying every time the home screen returns.
- The options sheet's segments switch to a list at large font sizes and
  read left to right for alignment in right-to-left languages; the spoken
  time says AM or PM in 12-hour mode.

Pictures, and both widgets' data:
- When Android restores widgets, the pictures and the clock's options
  move to the new ids instead of being deleted.
- The setup screen survives being recreated while photos are copied;
  photos staged for a widget that never got set up are cleared after the
  home screens load.
- Slides are decoded at about the frame's size, let go of in the
  background, and the slideshow pauses while the widget cannot be seen.
- No "Tap to choose pictures" over the sample while a photo loads; the
  empty widget's hint stays readable at large font sizes, off the sun.
- Canvas-drawn text follows Android's Bold text setting.

The drop animation of another app's widget lands at the size the widget
will have (the icon-aligned inset was added instead of taken off).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
TMCandClaude Opus 5.5 committed 2026-11-14 18:50:50 +01:00
1 parent ec7d3bc004
commit 42f728fd82
14 files changed
+893 -136

No files matched your search

@@ -592,6 +592,11 @@ public class LoaderTask implements Runnable {
private void sanitizeWidgetsShortcutsAndPackages() {
// Remove any ghost widgets
mModel.getModelDbController().removeGhostWidgets();
// Flexera Launcher: and the pictures an import kept for photo widgets that did not come.
// Not in safe mode, where widgets get no ids and so have not taken theirs yet.
if (!mIsSafeModeEnabled) {
app.flexera.widget.PictureWidgetProvider.onHomeScreensLoaded(mContext);
}
// Update pinned state of model shortcuts
mBgDataModel.updateShortcutPinnedState(mContext);