Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .Jules/palette.md
Original file line number Diff line number Diff line change
Expand Up @@ -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-29 - Localized Notification Channels
**Learning:** Using raw technical identifiers like `CHANNEL_ID` for an Android `NotificationChannel` exposes non-user-friendly strings directly in the Android System Settings under App Notifications.
**Action:** Always provide descriptive, localized string resources for Notification Channel names and descriptions, as these labels are exposed directly to users in the system settings.
4 changes: 2 additions & 2 deletions app/src/main/java/com/samsung/android/scan3d/serv/Cam.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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_desc)
val notificationManager = getSystemService(NotificationManager::class.java)
notificationManager.createNotificationChannel(channel)

Expand Down
3 changes: 3 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,7 @@
<string name="frame_time_format">%1$d ms</string>
<string name="bitrate_format">%1$d kB/sec</string>
<string name="quality_format">%1$d%%</string>

<string name="notification_channel_name">RemoteCam Service</string>
<string name="notification_channel_desc">Background service running RemoteCam</string>
</resources>