summaryrefslogtreecommitdiff
path: root/app/src/main/java/foundation
diff options
context:
space:
mode:
authorSeweryn Fornalik <s3w3ryn@e.email>2021-05-07 11:30:55 +0200
committerSeweryn Fornalik <s3w3ryn@e.email>2021-05-10 15:05:06 +0200
commit0fb76847bd24ef2295bfb271d6176f8c147e8084 (patch)
tree1baecd34e16a198a7f27216cd8dc6bc342e6523a /app/src/main/java/foundation
parent0b1f8b212f1be99efcaf4b7e6e77241e7cdbb96b (diff)
Fix spotless code check style issues
Diffstat (limited to 'app/src/main/java/foundation')
-rw-r--r--app/src/main/java/foundation/e/privacycentralapp/features/location/FakeLocationFragment.kt18
1 files changed, 11 insertions, 7 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)
}
}