Browse Source

Revert "Add force enabled backends array"

This reverts commit 4f3db06db5.
master
Peter Cai 2 months ago
parent
commit
1274a311d8
  1. 2
      client/src/main/kotlin/org/microg/nlp/client/UnifiedLocationClient.kt
  2. 24
      client/src/main/res/values/arrays.xml

2
client/src/main/kotlin/org/microg/nlp/client/UnifiedLocationClient.kt

@ -451,8 +451,6 @@ class UnifiedLocationClient(private val context: Context, private val lifecycle:
} catch (e: Exception) {
Log.w(TAG, "Failed to register location callback", e)
}
context.get()?.resources?.getStringArray(R.array.force_location_backends)?.let { setLocationBackends(it + getLocationBackends()) }
context.get()?.resources?.getStringArray(R.array.force_geocoder_backends)?.let { setGeocoderBackends(it + getGeocoderBackends()) }
updateServiceInterval()
if (continuations.size > 0) {
Log.d(TAG, "Resuming ${continuations.size} continuations")

24
client/src/main/res/values/arrays.xml

@ -1,24 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2013-2020 microG Project Team
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<resources>
<string-array name="force_location_backends" translatable="false">
</string-array>
<string-array name="force_geocoder_backends" translatable="false">
</string-array>
</resources>
Loading…
Cancel
Save