You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Overhang calculation turns out to be really difficult and confusing in the 12h format.
91
-
That's why whole calculation happens in 24h format and then gets later subtracted down,
92
-
if the hour field is between or equal of 12+houroverhang and 24.
93
-
Try setting houroverhang to 0 or 1 and watch what suits you better.
94
-
*This behaviour is only relevant when using the date,*
95
-
so please remember that using the 12h setting may not reflect the real time!
96
-
But maybe nobody will notice...
102
+
Now comes HangoverClock "Serenity":
103
+
104
+
Serenity comes with quite some overhauls and extra features.
105
+
106
+
The biggest new thing is the addition of a daydream/screensaver.
107
+
You now have the possibility to use HangoverClock as always on display if your phone is charging or in the dock.
108
+
109
+
And here are some of the smaller changes:
110
+
* The seconds overhang can now be configured
111
+
* 10+ new fonts have been added
112
+
* The configure menu now saves your settings
113
+
* The widget is now available on lockscreens too _(depends on your device)_
114
+
115
+
Many performance improvements have been made, such as that the clock now manages numbers up to 2^31 (2.147.483.648) with great efficiency when date is disabled.
97
116
98
117
## The Future
99
118
100
-
I'm always trying to leave as much options open as possible, but at some point there are too much settings for the user to choose.
101
-
Apple already learned that ;) So its probably not getting more customizable in regards to the current features,
102
-
but I'm always thinking of new features.
119
+
You can see my plans for this app [here](plans.md).
120
+
103
121
I'm always on the quest to make this the best HangoverClock ever.
104
122
105
123
## Code Stuff
106
124
107
-
* All calculations happen inside the Class WidgetGenerator.
108
-
* The only public method is generateWidget, which returns a Bitmap Image.
125
+
* All calculations happen inside the class `ClockGenerator`.
126
+
* The only public method is `generateWidget`, which returns a Bitmap Image.
109
127
* The fonts get dynamically collected from all available resource files
110
-
and saved in a static String array within the ClockWidgetProvider class.
128
+
and saved in a static String array within the `FontsProvider` class.
111
129
* The resulting bitmap resolution will be calculated to reach the best quality possible on every device.
112
-
* The sharedPreference keys are defined in preferencekeys.xml and their defaults in preferencekeydefaults.xml.
113
-
* sharedPreferences are saved in the format key and directly appended widget ID.
114
-
* If a key is not defined its default value is assumed and only gets saved when not default or when alwayssavepreferences bool is active.
115
-
* if one of the widgets has seconds enabled, the setalarmmanager method will request intent for one second instead of one second.
116
-
* That behaviour is dependent on sharedPreferences key "increaserefreshrate".
130
+
* The sharedPreference keys are defined in `*keys.xml` and their defaults in `*keydefaults.xml`.
131
+
* sharedPreferences are saved in following format: key and if needed a directly appended widget ID.
132
+
* If a key is not defined its default value is assumed and only gets saved when not default or when `alwayssavepreferences` bool is active.
133
+
* if one of the widgets has seconds enabled, the `setalarmmanager` method will request intent for one second instead of one minute.
134
+
* That behaviour is dependent on sharedPreferences key `increaserefreshrate`.
117
135
* That key will be determined on every clock update by looping though all widgets and looking if any has seconds enabled.
118
136
137
+
## License
138
+
139
+
You can see the current license [here](LICENSE.md).
140
+
119
141
## Thanksgiving
120
142
121
143
Thanks to all my friends, who motivated me to do this.
144
+
122
145
Also thanks to my laptop, which crashed 2 times with literally nothing saved to disk.
0 commit comments