...
This commit is contained in:
parent
17d6a87e49
commit
e1b4eab6d5
2 changed files with 16 additions and 7 deletions
|
|
@ -413,6 +413,13 @@ class DownloadBottomSheetDialog : BottomSheetDialogFragment() {
|
|||
shimmerLoadingSubtitle.visibility = View.VISIBLE
|
||||
shimmerLoading.startShimmer()
|
||||
shimmerLoadingSubtitle.startShimmer()
|
||||
}else{
|
||||
title.visibility = View.VISIBLE
|
||||
subtitle.visibility = View.VISIBLE
|
||||
shimmerLoading.visibility = View.GONE
|
||||
shimmerLoadingSubtitle.visibility = View.GONE
|
||||
shimmerLoading.stopShimmer()
|
||||
shimmerLoadingSubtitle.stopShimmer()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -428,6 +435,15 @@ class DownloadBottomSheetDialog : BottomSheetDialogFragment() {
|
|||
val f1 = fragmentManager.findFragmentByTag("f1") as DownloadVideoFragment
|
||||
f1.view?.findViewById<LinearProgressIndicator>(R.id.format_loading_progress)?.visibility = View.VISIBLE
|
||||
}
|
||||
}else{
|
||||
runCatching {
|
||||
val f1 = fragmentManager.findFragmentByTag("f0") as DownloadAudioFragment
|
||||
f1.view?.findViewById<LinearProgressIndicator>(R.id.format_loading_progress)?.visibility = View.GONE
|
||||
}
|
||||
runCatching {
|
||||
val f1 = fragmentManager.findFragmentByTag("f1") as DownloadVideoFragment
|
||||
f1.view?.findViewById<LinearProgressIndicator>(R.id.format_loading_progress)?.visibility = View.GONE
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -46,13 +46,6 @@ class UpdateUtil(var context: Context) {
|
|||
@SuppressLint("UnspecifiedRegisterReceiverFlag")
|
||||
fun updateApp(result: (result: String) -> Unit) {
|
||||
try {
|
||||
if (updatingApp) {
|
||||
Toast.makeText(
|
||||
context,
|
||||
context.getString(R.string.ytdl_already_updating),
|
||||
Toast.LENGTH_LONG
|
||||
).show()
|
||||
}
|
||||
val skippedVersions = sharedPreferences.getString("skip_updates", "")?.split(",")?.distinct()?.toMutableList() ?: mutableListOf()
|
||||
val res = getGithubReleases()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue