all: fix formatting

This commit is contained in:
Alexander Capehart 2025-01-01 13:14:06 -07:00
parent 68098b97ed
commit 04e81916f7
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47
3 changed files with 43 additions and 11 deletions

View file

@ -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))
}
}
}

View file

@ -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() {

View file

@ -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)
}
}