File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/processing/mode/android Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -158,15 +158,15 @@ public void setPermissions(String[] names) {
158
158
String name = kid .getString ("android:name" );
159
159
160
160
// ...except the ones for watch faces and VR apps.
161
- if (appComp == AndroidBuild .WATCHFACE && name .equals ("WAKE_LOCK" )) {
161
+ if (appComp == AndroidBuild .WATCHFACE && name .equals (PERMISSION_PREFIX + "WAKE_LOCK" )) {
162
162
hasWakeLock = true ;
163
163
continue ;
164
164
}
165
- if (appComp == AndroidBuild .VR && name .equals ("VIBRATE" )) {
165
+ if (appComp == AndroidBuild .VR && name .equals (PERMISSION_PREFIX + "VIBRATE" )) {
166
166
hasVibrate = true ;
167
167
continue ;
168
168
}
169
- if (appComp == AndroidBuild .VR && name .equals ("READ_EXTERNAL_STORAGE" )) {
169
+ if (appComp == AndroidBuild .VR && name .equals (PERMISSION_PREFIX + "READ_EXTERNAL_STORAGE" )) {
170
170
hasReadExtStorage = true ;
171
171
continue ;
172
172
}
@@ -219,15 +219,15 @@ private void fixPermissions(XML mf) {
219
219
boolean hasReadExtStorage = false ;
220
220
for (XML kid : mf .getChildren ("uses-permission" )) {
221
221
String name = kid .getString ("android:name" );
222
- if (appComp == AndroidBuild .WATCHFACE && name .equals ("WAKE_LOCK" )) {
222
+ if (appComp == AndroidBuild .WATCHFACE && name .equals (PERMISSION_PREFIX + "WAKE_LOCK" )) {
223
223
hasWakeLock = true ;
224
224
continue ;
225
225
}
226
- if (appComp == AndroidBuild .VR && name .equals ("VIBRATE" )) {
226
+ if (appComp == AndroidBuild .VR && name .equals (PERMISSION_PREFIX + "VIBRATE" )) {
227
227
hasVibrate = true ;
228
228
continue ;
229
229
}
230
- if (appComp == AndroidBuild .VR && name .equals ("READ_EXTERNAL_STORAGE" )) {
230
+ if (appComp == AndroidBuild .VR && name .equals (PERMISSION_PREFIX + "READ_EXTERNAL_STORAGE" )) {
231
231
hasReadExtStorage = true ;
232
232
continue ;
233
233
}
You can’t perform that action at this time.
0 commit comments