Fix Lint errors
This commit is contained in:
parent
bc93d81064
commit
afac75f4bc
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* SPDX-FileCopyrightText: 2013, microG Project Team
|
* SPDX-FileCopyrightText: 2013 microG Project Team
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -187,6 +187,7 @@ public class CellBackendHelper extends AbstractBackendHelper {
|
||||||
* This will fix empty MNC since Android 9 with 0-prefixed MNCs.
|
* This will fix empty MNC since Android 9 with 0-prefixed MNCs.
|
||||||
* Issue: https://issuetracker.google.com/issues/113560852
|
* Issue: https://issuetracker.google.com/issues/113560852
|
||||||
*/
|
*/
|
||||||
|
@SuppressLint("SoonBlockedPrivateApi")
|
||||||
private void fixEmptyMnc(List<CellInfo> cellInfo) {
|
private void fixEmptyMnc(List<CellInfo> cellInfo) {
|
||||||
if (Build.VERSION.SDK_INT < 28 || cellInfo == null) {
|
if (Build.VERSION.SDK_INT < 28 || cellInfo == null) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* SPDX-FileCopyrightText: 2020, microG Project Team
|
* SPDX-FileCopyrightText: 2020 microG Project Team
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ private val continuationMap = SparseArray<(Int, Intent?) -> Unit>()
|
||||||
|
|
||||||
fun Fragment.startActivityForResult(intent: Intent, options: Bundle? = null, callback: (Int, Intent?) -> Unit) {
|
fun Fragment.startActivityForResult(intent: Intent, options: Bundle? = null, callback: (Int, Intent?) -> Unit) {
|
||||||
val requestCode = requestCodeCounter.getAndIncrement()
|
val requestCode = requestCodeCounter.getAndIncrement()
|
||||||
continuationMap[requestCode] = callback
|
continuationMap.put(requestCode, callback)
|
||||||
startActivityForResult(intent, requestCode, options)
|
startActivityForResult(intent, requestCode, options)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -38,4 +38,4 @@ fun handleActivityResult(requestCode: Int, responseCode: Int, data: Intent?) {
|
||||||
Log.w("ActivityResultProc", "Error while handling activity result", e)
|
Log.w("ActivityResultProc", "Error while handling activity result", e)
|
||||||
}
|
}
|
||||||
continuationMap.remove(requestCode)
|
continuationMap.remove(requestCode)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue