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)
|
||||
w *= 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 newHeightMeasureSpec = MeasureSpec.makeMeasureSpec(h.toInt(), MeasureSpec.EXACTLY)
|
||||
var textSize = 0.15f * h
|
||||
|
||||
@@ -27,5 +27,4 @@
|
||||
<dimen name="smallerTextSize">12sp</dimen>
|
||||
<dimen name="tinyTextSize">10sp</dimen>
|
||||
<dimen name="habitNameWidth">160dp</dimen>
|
||||
<dimen name="checkmarkWidget_heightBreakpoint">55dp</dimen>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user