Skip to content

feat: add an option to hide AM/PM in the digital widget - #529

Open
ibrahim-iqbal wants to merge 1 commit into
FossifyOrg:mainfrom
ibrahim-iqbal:feat/138-optional-am-pm-widget
Open

ibrahim-iqbal wants to merge 1 commit into
FossifyOrg:mainfrom
ibrahim-iqbal:feat/138-optional-am-pm-widget

Conversation

@ibrahim-iqbal

@ibrahim-iqbal ibrahim-iqbal commented Nov 2, 2026 •

Copy link
Copy Markdown

Closes #138.

Adds a Show AM/PM switch to the digital widget configuration page, as the issue asks (on the widget config page, not in the app settings).

  • Stored like the other widget options (widgetShowAmPm), default on, so existing widgets are unchanged.
  • The widget's 12-hour clock switches between h:mm a and h:mm; the config page preview follows the switch.
  • The switch is hidden when the app uses the 24-hour format, since there is no marker to hide.
  • English string and changelog entry added.

Checked

  • ./gradlew :app:detekt :app:lintGplayDebug :app:assembleGplayDebug pass.
  • On an emulator (API 37.1 image, 12-hour format): the config page shows the switch, and turning it off changes the preview from 8:46 AM to 8:46.
  • Not checked: a widget actually placed on the home screen. The widget side sets the format through RemoteViews.setCharSequence("setFormat12Hour"), so it is worth one look on a device.

Add a "Show AM/PM" switch to the digital widget configuration page, as
the issue asks, rather than to the app settings. It is stored with the
other widget options and defaults to on, so existing widgets look the
same. The switch is hidden when the app uses the 24-hour format, where
there is no marker to hide, and the preview on the config page follows
it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make AM/PM in digital widget optional

1 participant