Repository navigation
Replies: 1 comment
|
Thanks for the careful proposal, @iHaris93. There's no Hijri key in the launcher today;
Either way the date reaches Home without growing the core. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
The launcher already shows the Solar Hijri date (
shamsi_date) and the lunisolar date (lunar_date) beside the Gregorian one. I'd like the same for the Islamic lunar Hijri calendar, which a large share of Android TV owners in Pakistan, the Gulf, Egypt, Indonesia, Malaysia, Turkey and North Africa check daily (Ramadan, Eid, Muharram, Friday prayers).Proposal
hijri_date(bool, off by default): shows today's Hijri date with the Gregorian one, e.g.17 Jumada al-Awwal 1448 AH. It followsdate_below_clocklike the Shamsi and lunar lines.hijri_adjust(-2 to +2 days, default 0): Hijri months start on local moon sighting, so countries often run a day apart (Pakistan is usually one day behind Saudi Arabia). One offset key covers that without any network lookup.hijri_variant:umalqura(default) orcivil.Why it fits the launcher's rules
android.icu.util.IslamicCalendarsince API 24, within the launcher's minSdk 26, so there's no new dependency or network access. The tabular (civil) calendar is also a few lines of arithmetic, likeShamsi.java.values-ar) and Urdu where translations exist.Today's workaround
The Prayer Times add-on shows the Hijri date inside its own page, but module cards are static, so it can't appear on Home. With this key the date would sit on Home next to the clock, where people look.
Tested context: CANDY Android TV DVB (Haier, MediaTek m7332), Android TV 14, with the CleanYourTV launcher and the dock-glass theme. My TV list is in #3559.
All reactions