diff --git a/.Jules/palette.md b/.Jules/palette.md index 8e61b09..7ba626c 100644 --- a/.Jules/palette.md +++ b/.Jules/palette.md @@ -146,3 +146,7 @@ ## 2026-05-20 - Mouse Hover States for Custom Selectors **Learning:** Custom drawable selectors (like `ic_shutter.xml`) on Android often define `state_pressed` and `state_focused` but omit `state_hovered`. This strips visual feedback for users navigating with pointer devices (mice, trackpads) on environments like Chromebooks or Samsung DeX, degrading the user experience compared to native components. **Action:** Always include `android:state_hovered="true"` alongside focus and pressed states in custom interactive background selectors to ensure universal visual feedback across all input methods. + +## 2026-05-27 - Localized Notification Channel Names +**Learning:** Using raw technical identifiers (like `CHANNEL_ID`) or hardcoded strings as the visible name or description for an Android `NotificationChannel` exposes poor terminology directly to users in the Android system settings. +**Action:** Always provide descriptive, localized string resources for NotificationChannel names and descriptions to ensure a professional and accessible UX in system-level interfaces. diff --git a/app/src/main/java/com/samsung/android/scan3d/serv/Cam.kt b/app/src/main/java/com/samsung/android/scan3d/serv/Cam.kt index 902764a..2529aa1 100644 --- a/app/src/main/java/com/samsung/android/scan3d/serv/Cam.kt +++ b/app/src/main/java/com/samsung/android/scan3d/serv/Cam.kt @@ -45,10 +45,10 @@ class Cam : Service() { "start" -> { val channel = NotificationChannel( CHANNEL_ID, - CHANNEL_ID, + getString(R.string.notification_channel_name), NotificationManager.IMPORTANCE_DEFAULT ) - channel.description = "RemoteCam run" + channel.description = getString(R.string.notification_channel_description) val notificationManager = getSystemService(NotificationManager::class.java) notificationManager.createNotificationChannel(channel) diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index b34ffb5..335ede4 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -69,4 +69,8 @@ %1$d ms %1$d kB/sec %1$d%% + + + Camera Service + Active background camera streaming service