Android Text Clip Pin Features

Замовник: AI | Опубліковано: 06.03.2026

I have an Android app that displays a scrolling list of short text clips. I now need a quick-pin workflow: • When the user single-taps a clip, it should toggle into a “pinned” state and remain visible indefinitely. • Any clip that is not pinned must be automatically removed exactly one hour after it is created (or last edited), even if the app is closed in the meantime. • Visual feedback is important: pinned items should be clearly distinguishable from regular ones (icon, color badge—your call, as long as it follows Material guidelines). You are free to work in Kotlin or Java and may choose the persistence layer that best fits—Room, DataStore, or another solution—so long as the auto-deletion runs reliably in the background (WorkManager or an equivalent scheduler). Deliverables: 1. Updated project files implementing the pin logic, time-based cleanup, and UI cues. 2. A brief README explaining where the core code lives and how the one-hour expiry is handled. 3. A simple unit or instrumentation test proving that pinned items persist and unpinned items are purged after the deadline. That’s it—clean, concise, and ready to merge.