mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 04:13:53 +01:00
Fix lint warning about Timber (#6521)
Change trivial string formatting and function calls for Timber logging. This resolves all the lint warnings in the Android/Lint/Correctness/Messages group.
This commit is contained in:
parent
29b6d0f8fe
commit
717a855149
3 changed files with 4 additions and 3 deletions
|
|
@ -324,7 +324,7 @@ after opening the app.
|
|||
)
|
||||
.subscribeOn(Schedulers.io())
|
||||
.blockingGet()
|
||||
Timber.d("Resuming " + stuckUploads.size + " uploads...")
|
||||
Timber.d("Resuming %d uploads...", stuckUploads.size)
|
||||
if (!stuckUploads.isEmpty()) {
|
||||
for (contribution in stuckUploads) {
|
||||
contribution.state = Contribution.STATE_QUEUED
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ import java.io.File
|
|||
import java.io.FileOutputStream
|
||||
import java.util.Locale
|
||||
import javax.inject.Inject
|
||||
import timber.log.Timber
|
||||
|
||||
/**
|
||||
* This activity will set two tabs, achievements and
|
||||
|
|
@ -122,7 +123,7 @@ class ProfileActivity : BaseActivity() {
|
|||
val rootView = window.decorView.findViewById<View>(android.R.id.content)
|
||||
val screenShot = getScreenShot(rootView)
|
||||
if (screenShot == null) {
|
||||
Log.e("ERROR", "ScreenShot is null")
|
||||
Timber.e("ScreenShot is null")
|
||||
return false
|
||||
}
|
||||
showAlert(screenShot)
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ object LocationUtils {
|
|||
latLng = LatLng(latLngArray[1].trim().toDouble(),
|
||||
latLngArray[0].trim().toDouble(), 1f)
|
||||
} catch (e: Exception) {
|
||||
Timber.e("Error while parsing user entered lat long: %s", e)
|
||||
Timber.e(e, "Error while parsing user entered lat long")
|
||||
}
|
||||
|
||||
return latLng
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue