Skip to content

Conversation

@sameerasw
Copy link
Owner

This pull request updates the Batteries Widget to improve its layout flexibility and visual consistency, especially for small widget sizes. It also bumps the app version and adjusts widget metadata for better compatibility with smaller home screen cells.

Batteries Widget layout and sizing improvements:

  • Refactored the widget layout logic to use a dynamic grid approach that adapts the number of columns and item sizes based on widget dimensions, ensuring better appearance for both single and multiple battery items. The layout now uses a minimum item width and adjusts padding and item resolution accordingly. [1] [2] [3]
  • Improved handling of edge cases (such as when there are no battery items to display) by providing a default item, and removed redundant layout code for single and multi-item scenarios. [1] [2]

Widget metadata and configuration updates:

  • Reduced the minimum widget size in batteries_widget_info.xml from 100dp to 40dp for both width and height, and set target cell dimensions and minimum resize constraints to allow the widget to be placed in smaller home screen cells.

Version bump:

  • Increased versionCode to 23 and versionName to "10.2" in build.gradle.kts to reflect the new release.

Code cleanup:

  • Removed unused isNightMode logic from the widget code to simplify theme handling.

@sameerasw sameerasw self-assigned this Jan 23, 2026
@sameerasw sameerasw added bug Something isn't working enhancement New feature or request labels Jan 23, 2026
@sameerasw sameerasw merged commit 5dd8284 into main Jan 23, 2026
1 check passed
@github-project-automation github-project-automation bot moved this from Backlog to Done in Essentials Progress Jan 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants