A fork of Simple Time Tracker with WearOS support. (Now integrated upstream)
0

Configure Feed

Select the types of activity you want to include in your feed.

fix goal text cutting of by max notification height in api 29

razeeman (Aug 5, 2023, 2:45 PM +0300) 9476ae38 a329bbc0

+4 -1
+3
features/feature_notification/src/main/res/layout/notification_record_layout.xml
··· 64 64 style="@style/TextAppearance.Compat.Notification.Title" 65 65 android:layout_width="wrap_content" 66 66 android:layout_height="wrap_content" 67 + android:includeFontPadding="false" 67 68 android:textSize="13sp" /> 68 69 69 70 <Chronometer ··· 71 72 style="@style/TextAppearance.Compat.Notification.Info" 72 73 android:layout_width="wrap_content" 73 74 android:layout_height="wrap_content" 75 + android:includeFontPadding="false" 74 76 android:textSize="12sp" 75 77 android:visibility="gone" 76 78 tools:visibility="visible" /> ··· 80 82 style="@style/TextAppearance.Compat.Notification.Info" 81 83 android:layout_width="wrap_content" 82 84 android:layout_height="wrap_content" 85 + android:includeFontPadding="false" 83 86 android:textSize="11sp" 84 87 android:visibility="gone" 85 88 tools:text="goal 10m"
+1 -1
features/feature_notification/src/main/java/com/example/util/simpletimetracker/feature_notification/recordType/manager/NotificationTypeManager.kt
··· 139 139 setViewVisibility(R.id.timerNotificationTotal, View.GONE) 140 140 } 141 141 142 - if (params.goalTime.isNotEmpty()) { 142 + if (params.goalTime.isNotEmpty() && isBig) { 143 143 // TODO show only closest goal time, count down to it? 144 144 setTextViewText(R.id.tvNotificationGoalTime, params.goalTime) 145 145 setViewVisibility(R.id.tvNotificationGoalTime, View.VISIBLE)