Skip to content

Commit 2c5d390

Browse files
oSumAtrIXLisoUseInAIKyrios
authored andcommitted
perf(YouTube - GmsCore support): Improve performance by using hashsets
1 parent ece86f2 commit 2c5d390

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/kotlin/app/revanced/patches/shared/misc/gms/BaseGmsCoreSupportPatch.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ abstract class BaseGmsCoreSupportPatch(
249249
/**
250250
* A list of all permissions.
251251
*/
252-
val PERMISSIONS = listOf(
252+
val PERMISSIONS = setOf(
253253
// C2DM / GCM
254254
"com.google.android.c2dm.permission.RECEIVE",
255255
"com.google.android.c2dm.permission.SEND",
@@ -266,7 +266,7 @@ abstract class BaseGmsCoreSupportPatch(
266266
/**
267267
* All intent actions.
268268
*/
269-
val ACTIONS = listOf(
269+
val ACTIONS = setOf(
270270
// location
271271
"com.google.android.gms.location.places.ui.PICK_PLACE",
272272
"com.google.android.gms.location.places.GeoDataApi",
@@ -345,7 +345,7 @@ abstract class BaseGmsCoreSupportPatch(
345345
/**
346346
* All content provider authorities.
347347
*/
348-
val AUTHORITIES = listOf(
348+
val AUTHORITIES = setOf(
349349
// gsf
350350
"com.google.android.gsf.gservices",
351351
"com.google.settings",

0 commit comments

Comments
 (0)