feat: Add digital signage mode (URL rotation)
CI / build (push) Has been cancelled
CI / lint (push) Has been cancelled

- SignageManager.kt: Handles URL rotation with configurable interval
- Admin UI: Toggle, URL list (one per line), interval setting
- SignageManagerTest.kt: 9 unit tests for rotation logic

Features:
- Enable/disable signage mode
- Configure list of URLs to rotate
- Set rotation interval (min 5 seconds)
- Pauses on user interaction (resumes after 1 min)
- Resets to first URL on idle timeout

Note: MainActivity integration pending
This commit is contained in:
2026-02-03 19:53:54 +00:00
parent d1a637e8e4
commit 4f33255417
3 changed files with 292 additions and 0 deletions
@@ -69,6 +69,52 @@
android:inputType="numberPassword" />
</com.google.android.material.textfield.TextInputLayout>
<!-- Digital Signage Section -->
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Digital Signage"
android:textSize="18sp"
android:textStyle="bold"
android:layout_marginTop="16dp"
android:layout_marginBottom="8dp" />
<com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/switchSignage"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Enable URL Rotation"
android:layout_marginBottom="16dp" />
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Signage URLs (one per line)"
android:layout_marginBottom="16dp">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/etSignageUrls"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textMultiLine"
android:minLines="3"
android:gravity="top" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Rotation Interval (seconds)"
android:layout_marginBottom="24dp">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/etSignageInterval"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="number"
android:text="30" />
</com.google.android.material.textfield.TextInputLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"