Merge pull request #1761 from Bnyro/master

Minor fixes
This commit is contained in:
Bnyro 2022-11-05 14:29:17 +01:00 committed by GitHub
commit d852726ecf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 12 deletions

View File

@ -27,12 +27,6 @@ class HomeFragment : BaseFragment() {
private lateinit var binding: FragmentHomeBinding
private lateinit var region: String
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
arguments?.let {
}
}
override fun onCreateView(
inflater: LayoutInflater,
container: ViewGroup?,

View File

@ -21,7 +21,7 @@ object LocaleHelper {
)
updateLocaleConf(context, locale)
} else {
val locale = Locale(languageName.toString())
val locale = Locale(languageName)
updateLocaleConf(context, locale)
}
}
@ -41,15 +41,15 @@ object LocaleHelper {
fun getDetectedCountry(context: Context, defaultCountryIsoCode: String): String {
detectSIMCountry(context)?.let {
return it
if (it != "") return it
}
detectNetworkCountry(context)?.let {
return it
if (it != "") return it
}
detectLocaleCountry(context)?.let {
return it
if (it != "") return it
}
return defaultCountryIsoCode

View File

@ -51,8 +51,9 @@
android:layout_height="wrap_content"
android:layout_below="@+id/video_count"
android:layout_centerInParent="true"
android:layout_marginStart="5dp"
app:srcCompat="@drawable/ic_playlist" />
android:paddingStart="5dp"
app:srcCompat="@drawable/ic_playlist"
tools:ignore="RtlSymmetry" />
</RelativeLayout>
</com.google.android.material.card.MaterialCardView>