You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update Matter SDK to show Authorisation dialog only for account login flow. (project-chip#33470)
* [Problem]
Authorisation dialogue wasn't disabled when user disabled it from settings
[Solution]
Put a condition to check if user has authorised it. if not, then dialogue will not be shown.
[Test]
Tested-by: Lazar Kovacic <kovacic.lazar@gmail.com>
* Restyled by google-java-format
* Update MatterCommissioningPrompter.java
* Restyled by whitespace
* Restyled by google-java-format
---------
Co-authored-by: osamabb <osamabb@amazon.de>
Co-authored-by: Restyled.io <commits@restyled.io>
Co-authored-by: Lazar Kovacic <kovacic.lazar@gmail.com>
Copy file name to clipboardexpand all lines: examples/tv-app/android/App/platform-app/src/main/java/com/matter/tv/server/MatterCommissioningPrompter.java
+13
Original file line number
Diff line number
Diff line change
@@ -5,8 +5,10 @@
5
5
importandroid.app.Activity;
6
6
importandroid.app.NotificationChannel;
7
7
importandroid.app.NotificationManager;
8
+
importandroid.content.ContentResolver;
8
9
importandroid.content.Context;
9
10
importandroid.os.Build;
11
+
importandroid.provider.Settings;
10
12
importandroid.util.Log;
11
13
importandroid.widget.EditText;
12
14
importandroidx.appcompat.app.AlertDialog;
@@ -45,6 +47,17 @@ public void promptForCommissionOkPermission(
0 commit comments