@@ -78,18 +78,18 @@ class KeyMapperApp : MultiDexApplication() {
7878
7979 val packageManagerAdapter by lazy {
8080 AndroidPackageManagerAdapter (
81- this ,
81+ this ,
8282 appCoroutineScope
8383 )
8484 }
8585
8686 val inputMethodAdapter by lazy {
8787 AndroidInputMethodAdapter (
88- this ,
89- appCoroutineScope,
90- accessibilityServiceAdapter,
91- permissionAdapter,
92- suAdapter
88+ this ,
89+ appCoroutineScope,
90+ accessibilityServiceAdapter,
91+ permissionAdapter,
92+ suAdapter
9393 )
9494 }
9595 val devicesAdapter by lazy {
@@ -103,10 +103,10 @@ class KeyMapperApp : MultiDexApplication() {
103103 val cameraAdapter by lazy { AndroidCameraAdapter (this ) }
104104 val permissionAdapter by lazy {
105105 AndroidPermissionAdapter (
106- this ,
107- appCoroutineScope,
108- suAdapter,
109- notificationReceiverAdapter
106+ this ,
107+ appCoroutineScope,
108+ suAdapter,
109+ notificationReceiverAdapter
110110 )
111111 }
112112
@@ -144,18 +144,18 @@ class KeyMapperApp : MultiDexApplication() {
144144
145145 val autoGrantPermissionController by lazy {
146146 AutoGrantPermissionController (
147- appCoroutineScope,
148- permissionAdapter,
149- popupMessageAdapter,
150- resourceProvider
147+ appCoroutineScope,
148+ permissionAdapter,
149+ popupMessageAdapter,
150+ resourceProvider
151151 )
152152 }
153153
154154 private val loggingTree by lazy {
155155 KeyMapperLoggingTree (
156- appCoroutineScope,
157- ServiceLocator .settingsRepository(this ),
158- ServiceLocator .logRepository(this )
156+ appCoroutineScope,
157+ ServiceLocator .settingsRepository(this ),
158+ ServiceLocator .logRepository(this )
159159 )
160160 }
161161
@@ -167,10 +167,10 @@ class KeyMapperApp : MultiDexApplication() {
167167 Thread .setDefaultUncaughtExceptionHandler { thread, exception ->
168168 // log in a blocking manner and always log regardless of whether the setting is turned on
169169 val entry = LogEntryEntity (
170- id = 0 ,
171- time = Calendar .getInstance().timeInMillis,
172- severity = LogEntryEntity .SEVERITY_ERROR ,
173- message = exception.stackTraceToString()
170+ id = 0 ,
171+ time = Calendar .getInstance().timeInMillis,
172+ severity = LogEntryEntity .SEVERITY_ERROR ,
173+ message = exception.stackTraceToString()
174174 )
175175
176176 runBlocking {
@@ -195,8 +195,8 @@ class KeyMapperApp : MultiDexApplication() {
195195 else -> AppCompatDelegate .MODE_NIGHT_FOLLOW_SYSTEM
196196 }
197197 }
198- .onEach { mode -> AppCompatDelegate .setDefaultNightMode(mode) }
199- .launchIn(appCoroutineScope)
198+ .onEach { mode -> AppCompatDelegate .setDefaultNightMode(mode) }
199+ .launchIn(appCoroutineScope)
200200
201201 if (BuildConfig .BUILD_TYPE == " debug" || BuildConfig .BUILD_TYPE == " debug_release" ) {
202202 Timber .plant(Timber .DebugTree ())
@@ -222,14 +222,14 @@ class KeyMapperApp : MultiDexApplication() {
222222 )
223223
224224 autoSwitchImeController = AutoSwitchImeController (
225- appCoroutineScope,
226- ServiceLocator .settingsRepository(this ),
227- ServiceLocator .inputMethodAdapter(this ),
228- UseCases .pauseMappings(this ),
229- devicesAdapter,
230- popupMessageAdapter,
231- resourceProvider,
232- ServiceLocator .accessibilityServiceAdapter(this )
225+ appCoroutineScope,
226+ ServiceLocator .settingsRepository(this ),
227+ ServiceLocator .inputMethodAdapter(this ),
228+ UseCases .pauseMappings(this ),
229+ devicesAdapter,
230+ popupMessageAdapter,
231+ resourceProvider,
232+ ServiceLocator .accessibilityServiceAdapter(this )
233233 )
234234
235235 processLifecycleOwner.lifecycle.addObserver(object : LifecycleObserver {
0 commit comments