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 notification_controls placeholders visibility

razeeman (Mar 11, 2023, 4:13 PM +0300) 8d2bbe16 12f51c0b

+9
+1
features/feature_notification/src/main/res/layout/notification_tag_layout.xml
··· 1 1 <?xml version="1.0" encoding="utf-8"?> 2 2 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 3 xmlns:tools="http://schemas.android.com/tools" 4 + android:id="@+id/containerNotificationTag" 4 5 android:layout_width="match_parent" 5 6 android:layout_height="match_parent" 6 7 android:layout_weight="1"
+1
features/feature_notification/src/main/res/layout/notification_type_layout.xml
··· 1 1 <?xml version="1.0" encoding="utf-8"?> 2 2 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 3 xmlns:tools="http://schemas.android.com/tools" 4 + android:id="@+id/containerNotificationType" 4 5 android:layout_width="match_parent" 5 6 android:layout_height="match_parent" 6 7 android:layout_weight="1"
+1
app/src/androidTest/java/com/example/util/simpletimetracker/SettingsTest.kt
··· 980 980 981 981 // Add data 982 982 testUtils.addActivity(name) 983 + Thread.sleep(1000) 983 984 tryAction { clickOnViewWithText(name) } 984 985 tryAction { clickOnView(allOf(isDescendantOfA(withId(R.id.viewRunningRecordItem)), withText(name))) } 985 986
+6
features/feature_notification/src/main/java/com/example/util/simpletimetracker/feature_notification/recordType/manager/NotificationTypeManager.kt
··· 265 265 return RemoteViews(context.packageName, R.layout.notification_type_layout) 266 266 .apply { 267 267 if (icon != null && color != null) { 268 + setViewVisibility(R.id.containerNotificationType, View.VISIBLE) 268 269 setImageViewBitmap(R.id.ivNotificationType, getIconBitmap(icon, color)) 270 + } else { 271 + setViewVisibility(R.id.containerNotificationType, View.INVISIBLE) 269 272 } 270 273 if (intent != null) { 271 274 setOnClickPendingIntent(R.id.btnNotificationType, intent) ··· 282 285 .apply { 283 286 setTextViewText(R.id.tvNotificationTag, text) 284 287 if (color != null) { 288 + setViewVisibility(R.id.containerNotificationTag, View.VISIBLE) 285 289 setInt(R.id.ivNotificationTag, "setColorFilter", color) 290 + } else { 291 + setViewVisibility(R.id.containerNotificationTag, View.INVISIBLE) 286 292 } 287 293 if (intent != null) { 288 294 setOnClickPendingIntent(R.id.btnNotificationTag, intent)