Skip to content
This repository was archived by the owner on Dec 18, 2022. It is now read-only.

Commit cae5e52

Browse files
committed
add message to Library Settings if no changes were made
1 parent 5aa4cb4 commit cae5e52

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

sampleapp/src/main/java/io/matthewnelson/sampleapp/ui/fragments/settings/library/SettingsLibraryFragment.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,10 @@ class SettingsLibraryFragment : Fragment() {
177177
DashboardFragment.showMessage(
178178
DashMessage("Settings Saved", R.drawable.dash_message_color_green, 3_000L)
179179
)
180+
} else {
181+
DashboardFragment.showMessage(
182+
DashMessage("No Changes", R.drawable.dash_message_color_secondary_light, 2_000)
183+
)
180184
}
181185
}
182186
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<shape xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:shape="rectangle">
4+
<solid android:color="@color/secondaryLightColor" />
5+
<corners android:radius="8dp" />
6+
<stroke android:width="2dp" android:color="@color/dash_message_drawable_border" />
7+
</shape>

0 commit comments

Comments
 (0)