mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
@@ -124,8 +124,6 @@ class CheckmarkWidgetView : HabitWidgetView {
|
|||||||
val scale = min(width / w, height / h)
|
val scale = min(width / w, height / h)
|
||||||
w *= scale
|
w *= scale
|
||||||
h *= scale
|
h *= scale
|
||||||
if (h < getDimension(context, R.dimen.checkmarkWidget_heightBreakpoint)) ring.visibility =
|
|
||||||
GONE else ring.visibility = VISIBLE
|
|
||||||
val newWidthMeasureSpec = MeasureSpec.makeMeasureSpec(w.toInt(), MeasureSpec.EXACTLY)
|
val newWidthMeasureSpec = MeasureSpec.makeMeasureSpec(w.toInt(), MeasureSpec.EXACTLY)
|
||||||
val newHeightMeasureSpec = MeasureSpec.makeMeasureSpec(h.toInt(), MeasureSpec.EXACTLY)
|
val newHeightMeasureSpec = MeasureSpec.makeMeasureSpec(h.toInt(), MeasureSpec.EXACTLY)
|
||||||
var textSize = 0.15f * h
|
var textSize = 0.15f * h
|
||||||
|
|||||||
@@ -27,5 +27,4 @@
|
|||||||
<dimen name="smallerTextSize">12sp</dimen>
|
<dimen name="smallerTextSize">12sp</dimen>
|
||||||
<dimen name="tinyTextSize">10sp</dimen>
|
<dimen name="tinyTextSize">10sp</dimen>
|
||||||
<dimen name="habitNameWidth">160dp</dimen>
|
<dimen name="habitNameWidth">160dp</dimen>
|
||||||
<dimen name="checkmarkWidget_heightBreakpoint">55dp</dimen>
|
|
||||||
</resources>
|
</resources>
|
||||||
Reference in New Issue
Block a user