diff options
-rw-r--r-- | app/src/main/java/foundation/e/privacycentralapp/features/location/FakeLocationFragment.kt | 18 | ||||
-rw-r--r-- | privacymodulesapi/build.gradle | 2 | ||||
-rw-r--r-- | privacymodulese/build.gradle | 2 | ||||
-rw-r--r-- | privacymodulesgoogle/build.gradle | 2 |
4 files changed, 14 insertions, 10 deletions
diff --git a/app/src/main/java/foundation/e/privacycentralapp/features/location/FakeLocationFragment.kt b/app/src/main/java/foundation/e/privacycentralapp/features/location/FakeLocationFragment.kt index c5a952e..502dd3d 100644 --- a/app/src/main/java/foundation/e/privacycentralapp/features/location/FakeLocationFragment.kt +++ b/app/src/main/java/foundation/e/privacycentralapp/features/location/FakeLocationFragment.kt @@ -18,8 +18,8 @@ package foundation.e.privacycentralapp.features.location import android.annotation.SuppressLint -import android.content.Context import android.app.AppOpsManager +import android.content.Context import android.os.Bundle import android.os.Looper import android.os.Process @@ -199,12 +199,14 @@ class FakeLocationFragment : private fun setFakeLocation(latitude: Double, longitude: Double) { if (permissionsModule.getAppOpMode(appDesc, AppOpsManager.OPSTR_MOCK_LOCATION) != AppOpModes.ALLOWED) { - permissionsModule.setAppOpMode(appDesc, AppOpsManager.OPSTR_MOCK_LOCATION, - AppOpModes.ALLOWED) + permissionsModule.setAppOpMode( + appDesc, AppOpsManager.OPSTR_MOCK_LOCATION, + AppOpModes.ALLOWED + ) } try { fakeLocationModule.startFakeLocation() - } catch(e: Exception) { + } catch (e: Exception) { Log.e("FakeLoc", "Can't startFakeLocation", e) } fakeLocationModule.setFakeLocation(latitude, longitude) @@ -212,11 +214,13 @@ class FakeLocationFragment : private fun setRealLocation() { try { - permissionsModule.setAppOpMode(appDesc, AppOpsManager.OPSTR_MOCK_LOCATION, - AppOpModes.IGNORED) + permissionsModule.setAppOpMode( + appDesc, AppOpsManager.OPSTR_MOCK_LOCATION, + AppOpModes.IGNORED + ) fakeLocationModule.stopFakeLocation() displayToast("Real location selected") - } catch(e: Exception) { + } catch (e: Exception) { Log.e("FakeLoc", "Can't stop FakeLocation", e) } } diff --git a/privacymodulesapi/build.gradle b/privacymodulesapi/build.gradle index 2ebc707..e9e42c9 100644 --- a/privacymodulesapi/build.gradle +++ b/privacymodulesapi/build.gradle @@ -1,2 +1,2 @@ configurations.maybeCreate("default") -artifacts.add("default", file('privacymodulesapi-debug.aar'))
\ No newline at end of file +artifacts.add("default", file('privacymodulesapi-debug.aar')) diff --git a/privacymodulese/build.gradle b/privacymodulese/build.gradle index 0cad7ab..7eb2490 100644 --- a/privacymodulese/build.gradle +++ b/privacymodulese/build.gradle @@ -1,3 +1,3 @@ configurations.maybeCreate("default") //artifacts.add("default", file('privacymodulese-release.aar')) -artifacts.add("default", file('privacymodulese-debug.aar'))
\ No newline at end of file +artifacts.add("default", file('privacymodulese-debug.aar')) diff --git a/privacymodulesgoogle/build.gradle b/privacymodulesgoogle/build.gradle index a5ced21..845fe8f 100644 --- a/privacymodulesgoogle/build.gradle +++ b/privacymodulesgoogle/build.gradle @@ -1,2 +1,2 @@ configurations.maybeCreate("default") -artifacts.add("default", file('privacymodulesgoogle-release.aar'))
\ No newline at end of file +artifacts.add("default", file('privacymodulesgoogle-release.aar')) |