Skip to content

Commit 0c4b501

Browse files
m.koleganovamar-v-in
authored andcommitted
Fix system profile behavior
System profile was not read from xml because the logic fallback to realData getProfileResId() was returning 0 in that case. In addition to PROFILE_USER and built-in resource-based profiles we need to check PROFILE_SYSTEM
1 parent 4181f56 commit 0c4b501

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

play-services-base/core/src/main/kotlin/org/microg/gms/profile/ProfileManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ object ProfileManager {
104104
private fun getProfileData(context: Context, profile: String, realData: Map<String, String>): Map<String, String> {
105105
try {
106106
if (profile in listOf(PROFILE_REAL, PROFILE_NATIVE)) return realData
107-
if (profile != PROFILE_USER && getProfileResId(context, profile) == 0) return realData
107+
if (profile !in listOf(PROFILE_USER, PROFILE_SYSTEM) && getProfileResId(context, profile) == 0) return realData
108108
val resultData = mutableMapOf<String, String>()
109109
resultData.putAll(realData)
110110
val parser = getProfileXml(context, profile)

0 commit comments

Comments
 (0)