From 0ac0b4c901eda97cd35a3f0e185459e008bc90a3 Mon Sep 17 00:00:00 2001 From: lash21 Date: Tue, 3 Nov 2026 15:06:10 +0100 Subject: [PATCH] nitification lisener --- .idea/deviceManager.xml | 13 +++++++ app/src/main/AndroidManifest.xml | 8 ++++ .../smart_watch_android/BLE/BleManager.kt | 38 +++++++++++-------- .../smart_watch_android/BLE/DeviceUUIDs.kt | 3 ++ .../smart_watch_android/MainActivity.kt | 4 ++ .../Notification/NotificationLisener.kt | 21 ++++++++++ .../Screens/AppNavigation.kt | 6 +++ .../Screens/ControlPanelScreen.kt | 12 +++++- 8 files changed, 87 insertions(+), 18 deletions(-) create mode 100644 .idea/deviceManager.xml create mode 100644 app/src/main/java/com/example/smart_watch_android/Notification/NotificationLisener.kt diff --git a/.idea/deviceManager.xml b/.idea/deviceManager.xml new file mode 100644 index 0000000..91f9558 --- /dev/null +++ b/.idea/deviceManager.xml @@ -0,0 +1,13 @@ + + + + + + \ No newline at end of file diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 1624f43..44d3834 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -17,6 +17,14 @@ android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/Theme.SmartWatchAndroid"> + + + + + Unit + onDisconnectClicked: () -> Unit, + onNotificationListnerClicked: () -> Unit ) { val context = LocalContext.current var textInput by remember { mutableStateOf("") } @@ -93,5 +93,13 @@ fun ControlPanelScreen( ) { Text("Disconnect") } + + Button( + onClick = onNotificationListnerClicked, + colors = ButtonDefaults.buttonColors(containerColor = Color(0xFFE53935)), + modifier = Modifier.fillMaxWidth() + ) { + Text("Notification Listener") + } } } \ No newline at end of file