This commit is contained in:
Tommaso Berlose
2021-05-05 10:54:09 +02:00
parent 1f22426dec
commit 854cfac28c
4 changed files with 3 additions and 4 deletions

View File

@ -5,6 +5,7 @@ import android.app.Activity
import android.location.Address
import android.location.Geocoder
import android.os.Bundle
import android.util.Log
import com.tommasoberlose.anotherwidget.R
import android.view.View
import androidx.appcompat.app.AppCompatActivity

View File

@ -401,7 +401,7 @@ class LeftAlignedWidget(val context: Context) {
bindingView.weatherDateLine.isVisible = true
val currentTemp = String.format(
Locale.getDefault(),
"%d °%s",
"%d°%s",
Preferences.weatherTemp.roundToInt(),
Preferences.weatherRealTempUnit
)

View File

@ -421,7 +421,7 @@ class StandardWidget(val context: Context) {
bindingView.weatherDateLine.isVisible = true
val currentTemp = String.format(
Locale.getDefault(),
"%d °%s",
"%d°%s",
Preferences.weatherTemp.roundToInt(),
Preferences.weatherRealTempUnit
)