diff --git a/.idea/caches/build_file_checksums.ser b/.idea/caches/build_file_checksums.ser index 8ef98d1..c7dbb3f 100644 Binary files a/.idea/caches/build_file_checksums.ser and b/.idea/caches/build_file_checksums.ser differ diff --git a/app/build.gradle b/app/build.gradle index 40046e8..9bb0003 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -22,8 +22,8 @@ android { applicationId "com.tommasoberlose.anotherwidget" minSdkVersion 23 targetSdkVersion 30 - versionCode 116 - versionName "2.2.0" + versionCode 118 + versionName "2.2.1" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" buildConfigField("String", "GOOGLE_API_KEY", apikeyProperties['GOOGLE_API_KEY']) diff --git a/app/src/main/java/com/tommasoberlose/anotherwidget/components/IconPackSelector.kt b/app/src/main/java/com/tommasoberlose/anotherwidget/components/IconPackSelector.kt index 63dc434..adbf455 100644 --- a/app/src/main/java/com/tommasoberlose/anotherwidget/components/IconPackSelector.kt +++ b/app/src/main/java/com/tommasoberlose/anotherwidget/components/IconPackSelector.kt @@ -17,7 +17,6 @@ import com.tommasoberlose.anotherwidget.helpers.WeatherHelper class IconPackSelector(context: Context, private val header: String? = null) : BottomSheetDialog(context, R.style.BottomSheetDialogTheme) { private var binding = BottomSheetMenuBinding.inflate(LayoutInflater.from(context)) - private var itemBinding = IconPackMenuItemBinding.inflate(LayoutInflater.from(context)) override fun show() { // Header @@ -28,6 +27,7 @@ class IconPackSelector(context: Context, private val header: String? = null) : B // Menu for (item in Constants.WeatherIconPack.values()) { + val itemBinding = IconPackMenuItemBinding.inflate(LayoutInflater.from(context)) itemBinding.label.text = context.getString(R.string.settings_weather_icon_pack_default).format(item.value + 1) itemBinding.root.isSelected = item.value == Preferences.weatherIconPack