From 709f9a83d385dcd48379eab6401aa895d116afe6 Mon Sep 17 00:00:00 2001 From: h4h13 Date: Thu, 16 May 2019 23:07:47 +0530 Subject: [PATCH] Fixed crashing --- app/build.gradle | 4 ++-- app/src/main/assets/retro-changelog.html | 2 +- .../preferences/BlacklistPreferenceDialog.kt | 11 ++++++----- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 16a88adb..7f38e0e5 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -31,8 +31,8 @@ android { vectorDrawables.useSupportLibrary = true applicationId "code.name.monkey.retromusic" - versionCode 320 - versionName '3.1.600' + versionCode 321 + versionName '3.1.700' multiDexEnabled true diff --git a/app/src/main/assets/retro-changelog.html b/app/src/main/assets/retro-changelog.html index fe159323..132aa8ee 100644 --- a/app/src/main/assets/retro-changelog.html +++ b/app/src/main/assets/retro-changelog.html @@ -1 +1 @@ -

v3.1.400

v3.1.300

v3.1.240

v3.1.200

v3.0.570

If you see entire app white or dark or black select same theme in settings to fix

FAQ's

*If you face any UI related issues you clear app data and cache, if its not working try to uninstall and install again.

\ No newline at end of file +

v3.1.700

v3.1.400

v3.1.300

v3.1.240

v3.1.200

v3.0.570

If you see entire app white or dark or black select same theme in settings to fix

FAQ's

*If you face any UI related issues you clear app data and cache, if its not working try to uninstall and install again.

\ No newline at end of file diff --git a/app/src/main/java/code/name/monkey/retromusic/preferences/BlacklistPreferenceDialog.kt b/app/src/main/java/code/name/monkey/retromusic/preferences/BlacklistPreferenceDialog.kt index 4f40f3ce..b29e8595 100644 --- a/app/src/main/java/code/name/monkey/retromusic/preferences/BlacklistPreferenceDialog.kt +++ b/app/src/main/java/code/name/monkey/retromusic/preferences/BlacklistPreferenceDialog.kt @@ -25,6 +25,7 @@ import code.name.monkey.retromusic.R import code.name.monkey.retromusic.dialogs.BlacklistFolderChooserDialog import code.name.monkey.retromusic.providers.BlacklistStore import com.afollestad.materialdialogs.MaterialDialog +import com.afollestad.materialdialogs.bottomsheets.BottomSheet import com.afollestad.materialdialogs.list.listItems import java.io.File import java.util.* @@ -58,13 +59,13 @@ class BlacklistPreferenceDialog : DialogFragment(), BlacklistFolderChooserDialog val blacklistFolderChooserDialog = childFragmentManager.findFragmentByTag("FOLDER_CHOOSER") as BlacklistFolderChooserDialog? blacklistFolderChooserDialog?.setCallback(this) refreshBlacklistData() - return MaterialDialog(context!!).show { + return MaterialDialog(context!!, BottomSheet()).sstathow { title(code.name.monkey.retromusic.R.string.blacklist) positiveButton(android.R.string.ok) { dismiss() } neutralButton(text = getString(R.string.clear_action)) { - MaterialDialog(context).show { + MaterialDialog(context, BottomSheet()).show { title(code.name.monkey.retromusic.R.string.clear_blacklist) message(code.name.monkey.retromusic.R.string.do_you_want_to_clear_the_blacklist) positiveButton(code.name.monkey.retromusic.R.string.clear_action) { @@ -80,7 +81,7 @@ class BlacklistPreferenceDialog : DialogFragment(), BlacklistFolderChooserDialog dialog.show(childFragmentManager, "FOLDER_CHOOSER"); } listItems(items = paths) { dialog, index, text -> - MaterialDialog(context).show { + MaterialDialog(context, BottomSheet()).show { title(code.name.monkey.retromusic.R.string.remove_from_blacklist) message(text = Html.fromHtml(getString(code.name.monkey.retromusic.R.string.do_you_want_to_remove_from_the_blacklist, text))) positiveButton(code.name.monkey.retromusic.R.string.remove_action) { @@ -98,8 +99,8 @@ class BlacklistPreferenceDialog : DialogFragment(), BlacklistFolderChooserDialog private fun refreshBlacklistData() { this.paths = BlacklistStore.getInstance(context!!).paths - val dialog: MaterialDialog? = dialog as MaterialDialog? - dialog?.listItems(items = paths) + val dialog = dialog as MaterialDialog + dialog.listItems(items = paths) } override fun onFolderSelection(dialog: BlacklistFolderChooserDialog, folder: File) {