diff --git a/README.md b/README.md index 98a1058c..6088addb 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ [![community](https://img.shields.io/badge/Telegram-Updates-red?style=flat-square&logo=telegram)](https://t.me/ytdlnisupdates) -### The links above are the only trusted sources of YTDLnis. Everything else is not related to me. +### Only the links above are the only trusted sources of YTDLnis. Everything else is not related to me. YTDLnis doesn't have a personal website. diff --git a/app/build.gradle b/app/build.gradle index ce656232..26f376c6 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -12,7 +12,7 @@ def properties = new Properties() def versionMajor = 1 def versionMinor = 8 def versionPatch = 1 -def versionBuild = 1 // bump for dogfood builds, public betas, etc. +def versionBuild = 2 // bump for dogfood builds, public betas, etc. def isBeta = false def versionExt = "" diff --git a/app/src/main/java/com/deniscerri/ytdl/ui/more/settings/UpdateSettingsFragment.kt b/app/src/main/java/com/deniscerri/ytdl/ui/more/settings/UpdateSettingsFragment.kt index 0bca0902..c8c4f693 100644 --- a/app/src/main/java/com/deniscerri/ytdl/ui/more/settings/UpdateSettingsFragment.kt +++ b/app/src/main/java/com/deniscerri/ytdl/ui/more/settings/UpdateSettingsFragment.kt @@ -75,8 +75,6 @@ class UpdateSettingsFragment : BaseSettingsFragment() { ytdlVersion = findPreference("ytdl-version") ytdlSource = findPreference("ytdlp_source_label") ytdlpUtil = YTDLPUtil(requireContext()) - setYTDLPVersion() - ytdlSource?.apply { summary = preferences.getString("ytdlp_source_label", "") setOnPreferenceClickListener { @@ -90,6 +88,13 @@ class UpdateSettingsFragment : BaseSettingsFragment() { } } + ytdlVersion?.apply { + summary = preferences.getString("ytdl-version", "") + setOnPreferenceClickListener { + initYTDLUpdate() + true + } + } ytdlVersion!!.setOnPreferenceClickListener { initYTDLUpdate() true diff --git a/app/src/main/java/com/deniscerri/ytdl/util/UiUtil.kt b/app/src/main/java/com/deniscerri/ytdl/util/UiUtil.kt index 0877e9d0..14b723bd 100644 --- a/app/src/main/java/com/deniscerri/ytdl/util/UiUtil.kt +++ b/app/src/main/java/com/deniscerri/ytdl/util/UiUtil.kt @@ -38,6 +38,7 @@ import androidx.annotation.OptIn import androidx.appcompat.app.AlertDialog import androidx.appcompat.app.AppCompatActivity import androidx.appcompat.content.res.AppCompatResources +import androidx.compose.ui.unit.dp import androidx.constraintlayout.widget.ConstraintLayout import androidx.core.text.HtmlCompat import androidx.core.text.parseAsHtml @@ -49,6 +50,7 @@ import androidx.fragment.app.FragmentManager import androidx.lifecycle.LifecycleOwner import androidx.preference.PreferenceManager import com.afollestad.materialdialogs.utils.MDUtil.getStringArray +import com.afollestad.materialdialogs.utils.MDUtil.textChanged import com.deniscerri.ytdl.MainActivity import com.deniscerri.ytdl.R import com.deniscerri.ytdl.database.models.CommandTemplate @@ -1060,9 +1062,13 @@ object UiUtil { withContext(Dispatchers.Main){ view.findViewById(R.id.suggested).visibility = View.VISIBLE chips.forEach { - it.isChecked = editText.text.contains(it.text) + it.isChecked = editText.text.split(",").any { it2 -> it2 == it.tag.toString() } chipGroup!!.addView(it) } + + editText.textChanged { + chipGroup.children.forEach { (it as Chip).isChecked = editText.text.split(",").any { it2 -> it2 == it.tag.toString() } } + } } } diff --git a/app/src/main/res/layout/subtitle_dialog.xml b/app/src/main/res/layout/subtitle_dialog.xml index a83f8955..5feb7aab 100644 --- a/app/src/main/res/layout/subtitle_dialog.xml +++ b/app/src/main/res/layout/subtitle_dialog.xml @@ -1,69 +1,63 @@ - + android:layout_height="match_parent" + xmlns:android="http://schemas.android.com/apk/res/android" + android:padding="20dp" + xmlns:app="http://schemas.android.com/apk/res-auto"> - + android:layout_height="wrap_content" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent"> - + android:maxLines="10" + android:inputType="textMultiLine" /> - + - + - + - + - + - - - + - - - \ No newline at end of file + \ No newline at end of file diff --git a/app/src/main/res/values/arrays.xml b/app/src/main/res/values/arrays.xml index deb73c1c..9a4e9647 100644 --- a/app/src/main/res/values/arrays.xml +++ b/app/src/main/res/values/arrays.xml @@ -1014,96 +1014,96 @@ - all, - live_chat, - af, - az, - id, - ms, - bs, - ca, - cs, - da, - de, - et, - en-IN, - en-GB, - en, - en.*, - es, - es-419, - es-US, - es.*, - eu, - fil, - fr, - fr-CA, - fr.*, - gl, - hr, - zu, - is, - it, - sw, - lv, - lt, - hu, - nl, - no, - uz, - pl, - pt-PT, - pt, - pt.*, - ro, - sq, - sk, - sl, - sr-Latn, - fi, - sv, - vi, - tr, - be, - bg, - ky, - kk, - mk, - mn, - ru, - sr, - uk, - el, - hy, - iw, - ur, - ar, - fa, - ne, - mr, - hi, - as, - bn, - pa, - gu, - or, - ta, - te, - kn, - ml, - si, - th, - lo, - my, - ka, - am, - km, - zh-CN, - zh-TW, - zh-HK, - zh.*, - ja, + af + am + ar + as + az + be + bg + bn + bs + ca + cs + da + de + el + en + en-GB + en-IN + en.* + es + es-419 + es-US + es.* + et + eu + fa + fi + fil + fr + fr-CA + fr.* + gl + gu + hi + hr + hu + hy + id + is + it + iw + ja + ka + kk + km + kn ko + ky + lo + lt + lv + ml + mk + mn + mr + ms + my + ne + nl + no + or + pa + pl + pt + pt-PT + pt.* + ro + ru + si + sk + sl + sq + sr + sr-Latn + sv + sw + ta + te + th + tr + uk + ur + uz + vi + zh-CN + zh-HK + zh-TW + zh.* + zu + all + live_chat diff --git a/fastlane/metadata/android/en-US/changelogs/108010200.txt b/fastlane/metadata/android/en-US/changelogs/108010200.txt new file mode 100644 index 00000000..ff7627b7 --- /dev/null +++ b/fastlane/metadata/android/en-US/changelogs/108010200.txt @@ -0,0 +1,9 @@ +# What's Changed + +- Extra Command bug fixes +- Added ability to quickly download all saved items from the top menu +- Made app delete bad info json file if it failed with JSONDecodeError +- Sorted the subtitles in the subtitle selection dialog, and they show which ones are selected correctly +- Prevented app from calling yt-dlp every time on updating settings to check version + +Hopefully this release is stable enough since there will be some few changes in the next version \ No newline at end of file