From b21ece2fa8e68d8fff7030515e694e1452df39a7 Mon Sep 17 00:00:00 2001 From: Christopher Williams Date: Wed, 10 Feb 2021 13:42:09 -0500 Subject: [PATCH] fix(android): expose properties for get/set pairs on QuickSettingsService --- .../android/quicksettings/QuickSettingsServiceProxy.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/android/modules/android/src/java/ti/modules/titanium/android/quicksettings/QuickSettingsServiceProxy.java b/android/modules/android/src/java/ti/modules/titanium/android/quicksettings/QuickSettingsServiceProxy.java index 087c8ed954b..cace002b8f3 100644 --- a/android/modules/android/src/java/ti/modules/titanium/android/quicksettings/QuickSettingsServiceProxy.java +++ b/android/modules/android/src/java/ti/modules/titanium/android/quicksettings/QuickSettingsServiceProxy.java @@ -43,6 +43,7 @@ public void updateTile() //Setting Tile's icon @Kroll.method + @Kroll.setProperty public void setIcon(Object path) { tileService.getQsTile().setIcon(Icon.createWithBitmap( @@ -52,6 +53,7 @@ public void setIcon(Object path) //Setting Tile's state @Kroll.method + @Kroll.setProperty public void setState(int state) { tileService.getQsTile().setState(state); @@ -59,6 +61,7 @@ public void setState(int state) //Setting Tile's label @Kroll.method + @Kroll.setProperty public void setLabel(String label) { tileService.getQsTile().setLabel(label); @@ -66,6 +69,7 @@ public void setLabel(String label) //Getting Tile'c icon @Kroll.method + @Kroll.getProperty public Object getIcon() { return pathObject; @@ -73,6 +77,7 @@ public Object getIcon() //Getting Tile's state @Kroll.method + @Kroll.getProperty public int getState() { return tileService.getQsTile().getState(); @@ -80,6 +85,7 @@ public int getState() //Getting Tile's label @Kroll.method + @Kroll.getProperty public String getLabel() { return tileService.getQsTile().getLabel().toString();