all: fix formatting
This commit is contained in:
parent
68098b97ed
commit
04e81916f7
3 changed files with 43 additions and 11 deletions
|
@ -320,9 +320,8 @@ class HomeFragment :
|
|||
binding.homeIndexingError.isInvisible = state.error == null
|
||||
if (state.error != null) {
|
||||
binding.homeIndexingContainer.setOnClickListener {
|
||||
findNavController().navigateSafe(
|
||||
HomeFragmentDirections.reportError(state.error)
|
||||
)
|
||||
findNavController()
|
||||
.navigateSafe(HomeFragmentDirections.reportError(state.error))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,3 +1,21 @@
|
|||
/*
|
||||
* Copyright (c) 2025 Auxio Project
|
||||
* LocationObserver.kt is part of Auxio.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package org.oxycblt.musikr.track
|
||||
|
||||
import android.content.Context
|
||||
|
@ -14,11 +32,7 @@ internal class LocationObserver(
|
|||
private val handler = Handler(Looper.getMainLooper())
|
||||
|
||||
init {
|
||||
context.applicationContext.contentResolver.registerContentObserver(
|
||||
location.uri,
|
||||
true,
|
||||
this
|
||||
)
|
||||
context.applicationContext.contentResolver.registerContentObserver(location.uri, true, this)
|
||||
}
|
||||
|
||||
fun release() {
|
||||
|
|
|
@ -1,3 +1,21 @@
|
|||
/*
|
||||
* Copyright (c) 2025 Auxio Project
|
||||
* UpdateTracker.kt is part of Auxio.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package org.oxycblt.musikr.track
|
||||
|
||||
import android.content.Context
|
||||
|
@ -13,7 +31,8 @@ interface UpdateTracker {
|
|||
}
|
||||
|
||||
companion object {
|
||||
fun from(context: Context, callback: Callback): UpdateTracker = UpdateTrackerImpl(context, callback)
|
||||
fun from(context: Context, callback: Callback): UpdateTracker =
|
||||
UpdateTrackerImpl(context, callback)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue