From 8658a56161f6c0dc08ec434f379b1216e25480ac Mon Sep 17 00:00:00 2001 From: philips77 Date: Tue, 26 May 2020 13:44:54 +0200 Subject: [PATCH] Unused resources removed --- .../android/nrftoolbox/csc/CSCService.java | 2 +- .../android/nrftoolbox/ht/HTService.java | 2 +- .../android/nrftoolbox/rsc/RSCService.java | 2 +- .../nrftoolbox/template/TemplateService.java | 2 +- app/src/main/res/drawable-v21/button.xml | 34 ------------------ .../res/drawable-xxxhdpi/ic_proximity_tag.png | Bin 2354 -> 0 bytes app/src/main/res/drawable/button.xml | 28 --------------- app/src/main/res/drawable/button_n.xml | 34 ------------------ app/src/main/res/drawable/button_p.xml | 34 ------------------ app/src/main/res/values/styles.xml | 8 ----- wear/src/main/res/values/dimens.xml | 27 -------------- 11 files changed, 4 insertions(+), 169 deletions(-) delete mode 100644 app/src/main/res/drawable-v21/button.xml delete mode 100644 app/src/main/res/drawable-xxxhdpi/ic_proximity_tag.png delete mode 100644 app/src/main/res/drawable/button.xml delete mode 100644 app/src/main/res/drawable/button_n.xml delete mode 100644 app/src/main/res/drawable/button_p.xml delete mode 100644 wear/src/main/res/values/dimens.xml diff --git a/app/src/main/java/no/nordicsemi/android/nrftoolbox/csc/CSCService.java b/app/src/main/java/no/nordicsemi/android/nrftoolbox/csc/CSCService.java index e177a25c..8f57164c 100644 --- a/app/src/main/java/no/nordicsemi/android/nrftoolbox/csc/CSCService.java +++ b/app/src/main/java/no/nordicsemi/android/nrftoolbox/csc/CSCService.java @@ -164,7 +164,7 @@ public class CSCService extends BleProfileService implements CSCManagerCallbacks private void startForegroundService(){ // when the activity closes we need to show the notification that user is connected to the peripheral sensor // We start the service as a foreground service as Android 8.0 (Oreo) onwards kills any running background services - final Notification notification = createNotification(R.string.uart_notification_connected_message, 0); + final Notification notification = createNotification(R.string.csc_notification_connected_message, 0); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { startForeground(NOTIFICATION_ID, notification); } else { diff --git a/app/src/main/java/no/nordicsemi/android/nrftoolbox/ht/HTService.java b/app/src/main/java/no/nordicsemi/android/nrftoolbox/ht/HTService.java index 684e9afd..a87d5adf 100644 --- a/app/src/main/java/no/nordicsemi/android/nrftoolbox/ht/HTService.java +++ b/app/src/main/java/no/nordicsemi/android/nrftoolbox/ht/HTService.java @@ -161,7 +161,7 @@ public class HTService extends BleProfileService implements HTManagerCallbacks { private void startForegroundService(){ // when the activity closes we need to show the notification that user is connected to the peripheral sensor // We start the service as a foreground service as Android 8.0 (Oreo) onwards kills any running background services - final Notification notification = createNotification(R.string.uart_notification_connected_message, 0); + final Notification notification = createNotification(R.string.hts_notification_connected_message, 0); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { startForeground(NOTIFICATION_ID, notification); } else { diff --git a/app/src/main/java/no/nordicsemi/android/nrftoolbox/rsc/RSCService.java b/app/src/main/java/no/nordicsemi/android/nrftoolbox/rsc/RSCService.java index 9de1959e..b21bbe52 100644 --- a/app/src/main/java/no/nordicsemi/android/nrftoolbox/rsc/RSCService.java +++ b/app/src/main/java/no/nordicsemi/android/nrftoolbox/rsc/RSCService.java @@ -210,7 +210,7 @@ public class RSCService extends BleProfileService implements RSCManagerCallbacks private void startForegroundService(){ // when the activity closes we need to show the notification that user is connected to the peripheral sensor // We start the service as a foreground service as Android 8.0 (Oreo) onwards kills any running background services - final Notification notification = createNotification(R.string.uart_notification_connected_message, 0); + final Notification notification = createNotification(R.string.rsc_notification_connected_message, 0); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { startForeground(NOTIFICATION_ID, notification); } else { diff --git a/app/src/main/java/no/nordicsemi/android/nrftoolbox/template/TemplateService.java b/app/src/main/java/no/nordicsemi/android/nrftoolbox/template/TemplateService.java index 65436804..e869c2ea 100644 --- a/app/src/main/java/no/nordicsemi/android/nrftoolbox/template/TemplateService.java +++ b/app/src/main/java/no/nordicsemi/android/nrftoolbox/template/TemplateService.java @@ -137,7 +137,7 @@ public class TemplateService extends BleProfileService implements TemplateManage private void startForegroundService(){ // when the activity closes we need to show the notification that user is connected to the peripheral sensor // We start the service as a foreground service as Android 8.0 (Oreo) onwards kills any running background services - final Notification notification = createNotification(R.string.uart_notification_connected_message, 0); + final Notification notification = createNotification(R.string.template_notification_connected_message, 0); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { startForeground(NOTIFICATION_ID, notification); } else { diff --git a/app/src/main/res/drawable-v21/button.xml b/app/src/main/res/drawable-v21/button.xml deleted file mode 100644 index 4ce2cf21..00000000 --- a/app/src/main/res/drawable-v21/button.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/drawable-xxxhdpi/ic_proximity_tag.png b/app/src/main/res/drawable-xxxhdpi/ic_proximity_tag.png deleted file mode 100644 index 501500efe4f937da32fb3cf0715cd1b8880028b1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2354 zcmV-23C;G2P)IHP_=}`1 zk-dW`0O#B-zy~u(mP?u!S)7ei%4Gg*^VX+fY@tv%tGl~fkRABq&q;r7 z4%$}WzTo*bAY^9Pb}z8em(K=f2W{W3OBLjt8+8&n1wBFecth9#NqYzR`CY7%))S$A(@&X zoDT%$SL?Vy}x@ zu9xJT8*Se3XAQ|G%;$C#nHfmh)DSaZfL+vYn6a$kzAWwS_xM;)?rH=#bU@*pJKuOe zPn-60fYXDjr5Uzibre88=C=T|f~q5uo-t%!G3{%D{udeAe?|e6&io<3k4^OhhGsG_ zA*lLuhT+~;OF_7*3cxe}4j_yzJtyfELwZwCJ}T)S!5D4E|6g2-p@`-xFu%pW`62Vy zOM24KU28%NkD8&b3(ChOy$}V^Kl7&oH=F9$CH*|b@LnEzH#;*#cZ2wC|R*v|$Ax zsmD2YmuK3@61qH7L|vQ;%mIe-c2;byqy>iV4)gp=Y8(Thf?ABXVzCc+R?>4BE8$tD zxk^I|?9uEzw1?LvD4bYEqbgBXFUqK4C+bb8dP-*W*2>1=IlsLIA%d zNgwV9woBSy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&);I6e~7srEvlewgjW|Fl++mr=hKGv_bG;Zm|2YNs@4ywRTXqWP+nr% zLfg<82G;zgf0vutvAmi;q~-+RcUgq`eRa@wCVjJCHtS_~-c|i#*;-UVeQsei2S6?` zZ8rZLs;9-04(1g85R$;$1d>$jR`344(MSRaBcA^;ZDDf7`uz4J&Z3;mpJ6;FNKWls z45!V@=nVm)Ka_>N=iSpZq5@y`fX z$EGd3b$3sW&pTGecYLd!-O&9c8>Nn$Hy+>>-oDU#qiO5Rm>pRtXY+8bK6SSArHtjy52_O_=CI55s|NB-yxQkuwny5fKp)5fKp)5fKp)5jBAS Y12?%Ag9Q9|!vFvP07*qoM6N<$g6{l%q5uE@ diff --git a/app/src/main/res/drawable/button.xml b/app/src/main/res/drawable/button.xml deleted file mode 100644 index fe223802..00000000 --- a/app/src/main/res/drawable/button.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - diff --git a/app/src/main/res/drawable/button_n.xml b/app/src/main/res/drawable/button_n.xml deleted file mode 100644 index 0b903215..00000000 --- a/app/src/main/res/drawable/button_n.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - diff --git a/app/src/main/res/drawable/button_p.xml b/app/src/main/res/drawable/button_p.xml deleted file mode 100644 index d79ca8aa..00000000 --- a/app/src/main/res/drawable/button_p.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 02d8814b..b58562ea 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -62,14 +62,6 @@ false - -