Removed unsed libs
This commit is contained in:
parent
570a235836
commit
70dda1e85f
10 changed files with 31 additions and 37 deletions
|
@ -13,8 +13,8 @@ android {
|
||||||
vectorDrawables.useSupportLibrary = true
|
vectorDrawables.useSupportLibrary = true
|
||||||
|
|
||||||
applicationId "code.name.monkey.retromusic"
|
applicationId "code.name.monkey.retromusic"
|
||||||
versionCode 346
|
versionCode 347
|
||||||
versionName '3.2.240'
|
versionName '3.3.00'
|
||||||
|
|
||||||
multiDexEnabled true
|
multiDexEnabled true
|
||||||
|
|
||||||
|
@ -139,7 +139,6 @@ dependencies {
|
||||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
||||||
implementation 'org.eclipse.mylyn.github:org.eclipse.egit.github.core:3.4.0.201406110918-r'
|
implementation 'org.eclipse.mylyn.github:org.eclipse.egit.github.core:3.4.0.201406110918-r'
|
||||||
|
|
||||||
implementation 'com.github.takahirom.downloadable.calligraphy:downloadable-calligraphy:0.1.3'
|
|
||||||
implementation 'com.github.ksoichiro:android-observablescrollview:1.6.0'
|
implementation 'com.github.ksoichiro:android-observablescrollview:1.6.0'
|
||||||
implementation 'com.github.kabouzeid:RecyclerView-FastScroll:1.0.16-kmod'
|
implementation 'com.github.kabouzeid:RecyclerView-FastScroll:1.0.16-kmod'
|
||||||
implementation 'com.github.kabouzeid:AndroidSlidingUpPanel:3.3.0-kmod3'
|
implementation 'com.github.kabouzeid:AndroidSlidingUpPanel:3.3.0-kmod3'
|
||||||
|
|
|
@ -28,9 +28,9 @@
|
||||||
|
|
||||||
<body style="padding: 1.0rem 0.5rem 1.0rem 0.5rem;">
|
<body style="padding: 1.0rem 0.5rem 1.0rem 0.5rem;">
|
||||||
<p><b><a href="https://github.com/kabouzeid/Phonograph" title="Phonograph"> Phonograph</a></b> by Karim Abou Zeid</p>
|
<p><b><a href="https://github.com/kabouzeid/Phonograph" title="Phonograph"> Phonograph</a></b> by Karim Abou Zeid</p>
|
||||||
<p><b><a href="https://github.com/ReactiveX/RxAndroid" title="RxAndroid"> RxAndroid</a></b> by RxAndroid authors</p>
|
<p><b><a href="https://github.com/AdrienPoupa/VinylMusicPlayer" title="VinylMusicPlayer"> VinylMusicPlayer</a></b> by Adrien Poupa</p>
|
||||||
<p><b><a href="https://github.com/ReactiveX/RxAndroid" title="RxJava"> RxJava</a></b> by RxJava authors</p>
|
<p><b><a href="https://github.com/ReactiveX/RxAndroid" title="RxJava"> RxJava</a></b> by RxJava authors</p>
|
||||||
<p> <b><a href="https://github.com/afollestad/material-cab" title="Material Dialogs"> Material Dialogs</a></b> by Aidan Michael Follestad</p>
|
<p> <b><a href="https://github.com/afollestad" title="Material Dialogs"> Material Dialogs and Cab</a></b> by Aidan Michael Follestad</p>
|
||||||
<p><b><a href="https://github.com/chrisjenx/Calligraphy" title="Calligraphy"> Calligraphy</a></b> by RxJava authors</p>
|
<p><b><a href="https://github.com/chrisjenx/Calligraphy" title="Calligraphy"> Calligraphy</a></b> by RxJava authors</p>
|
||||||
<p><b><a href="https://github.com/JetradarMobile/android-snowfall" title="Android-Snowfall"> Android-Snowfall</a></b> by JetRadar</p>
|
<p><b><a href="https://github.com/JetradarMobile/android-snowfall" title="Android-Snowfall"> Android-Snowfall</a></b> by JetRadar</p>
|
||||||
<p><b><a href="https://github.com/umano/AndroidSlidingUpPanel" title="Android Sliding Up Panel"> Android Sliding Up Panel</a></b>by The Umano Team</p>
|
<p><b><a href="https://github.com/umano/AndroidSlidingUpPanel" title="Android Sliding Up Panel"> Android Sliding Up Panel</a></b>by The Umano Team</p>
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -44,12 +44,6 @@ class App : MultiDexApplication() {
|
||||||
if (VersionUtils.hasNougatMR())
|
if (VersionUtils.hasNougatMR())
|
||||||
DynamicShortcutManager(this).initDynamicShortcuts()
|
DynamicShortcutManager(this).initDynamicShortcuts()
|
||||||
|
|
||||||
|
|
||||||
CalligraphyConfig.initDefault(CalligraphyConfig.Builder()
|
|
||||||
.setDefaultFont(R.font.circular_std_book)
|
|
||||||
.build()
|
|
||||||
)
|
|
||||||
|
|
||||||
// automatically restores purchases
|
// automatically restores purchases
|
||||||
billingProcessor = BillingProcessor(this, BuildConfig.GOOGLE_PLAY_LICENSING_KEY,
|
billingProcessor = BillingProcessor(this, BuildConfig.GOOGLE_PLAY_LICENSING_KEY,
|
||||||
object : BillingProcessor.IBillingHandler {
|
object : BillingProcessor.IBillingHandler {
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
package code.name.monkey.retromusic.activities.base
|
package code.name.monkey.retromusic.activities.base
|
||||||
|
|
||||||
|
import android.content.Context
|
||||||
import android.graphics.Color
|
import android.graphics.Color
|
||||||
import android.graphics.drawable.Drawable
|
import android.graphics.drawable.Drawable
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
|
@ -16,6 +17,8 @@ import code.name.monkey.appthemehelper.util.*
|
||||||
import code.name.monkey.retromusic.R
|
import code.name.monkey.retromusic.R
|
||||||
import code.name.monkey.retromusic.util.PreferenceUtil
|
import code.name.monkey.retromusic.util.PreferenceUtil
|
||||||
import code.name.monkey.retromusic.util.RetroUtil
|
import code.name.monkey.retromusic.util.RetroUtil
|
||||||
|
import uk.co.chrisjenx.calligraphy.CalligraphyContextWrapper
|
||||||
|
import uk.co.chrisjenx.calligraphy.CalligraphyTypefaceSpan
|
||||||
|
|
||||||
abstract class AbsThemeActivity : ATHActivity(), Runnable {
|
abstract class AbsThemeActivity : ATHActivity(), Runnable {
|
||||||
|
|
||||||
|
|
|
@ -15,12 +15,10 @@
|
||||||
package code.name.monkey.retromusic.dialogs
|
package code.name.monkey.retromusic.dialogs
|
||||||
|
|
||||||
import android.app.Dialog
|
import android.app.Dialog
|
||||||
import android.graphics.drawable.ColorDrawable
|
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.view.LayoutInflater
|
import android.view.LayoutInflater
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import androidx.fragment.app.DialogFragment
|
import androidx.fragment.app.DialogFragment
|
||||||
import code.name.monkey.appthemehelper.ThemeStore
|
|
||||||
import code.name.monkey.retromusic.R
|
import code.name.monkey.retromusic.R
|
||||||
import code.name.monkey.retromusic.activities.MainActivity
|
import code.name.monkey.retromusic.activities.MainActivity
|
||||||
import code.name.monkey.retromusic.util.NavigationUtil
|
import code.name.monkey.retromusic.util.NavigationUtil
|
||||||
|
@ -38,6 +36,7 @@ class OptionsSheetDialogFragment : DialogFragment(), View.OnClickListener {
|
||||||
R.id.actionFolders -> mainActivity.selectedFragment(R.id.action_folder)
|
R.id.actionFolders -> mainActivity.selectedFragment(R.id.action_folder)
|
||||||
R.id.actionLibrary -> mainActivity.selectedFragment(PreferenceUtil.getInstance().lastPage)
|
R.id.actionLibrary -> mainActivity.selectedFragment(PreferenceUtil.getInstance().lastPage)
|
||||||
R.id.actionSettings -> NavigationUtil.goToSettings(mainActivity)
|
R.id.actionSettings -> NavigationUtil.goToSettings(mainActivity)
|
||||||
|
R.id.actionRate -> NavigationUtil.goToPlayStore(mainActivity)
|
||||||
}
|
}
|
||||||
materialDialog.dismiss()
|
materialDialog.dismiss()
|
||||||
}
|
}
|
||||||
|
@ -45,11 +44,13 @@ class OptionsSheetDialogFragment : DialogFragment(), View.OnClickListener {
|
||||||
private lateinit var actionSettings: OptionMenuItemView
|
private lateinit var actionSettings: OptionMenuItemView
|
||||||
private lateinit var actionLibrary: OptionMenuItemView
|
private lateinit var actionLibrary: OptionMenuItemView
|
||||||
private lateinit var actionFolders: OptionMenuItemView
|
private lateinit var actionFolders: OptionMenuItemView
|
||||||
|
private lateinit var actionRate: OptionMenuItemView
|
||||||
private lateinit var materialDialog: MaterialDialog
|
private lateinit var materialDialog: MaterialDialog
|
||||||
|
|
||||||
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
|
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
|
||||||
val layout = LayoutInflater.from(context).inflate(R.layout.fragment_main_options, null)
|
val layout = LayoutInflater.from(context).inflate(R.layout.fragment_main_options, null)
|
||||||
actionSettings = layout.findViewById(R.id.actionSettings)
|
actionSettings = layout.findViewById(R.id.actionSettings)
|
||||||
|
actionRate = layout.findViewById(R.id.actionRate)
|
||||||
actionLibrary = layout.findViewById(R.id.actionLibrary)
|
actionLibrary = layout.findViewById(R.id.actionLibrary)
|
||||||
actionFolders = layout.findViewById(R.id.actionFolders)
|
actionFolders = layout.findViewById(R.id.actionFolders)
|
||||||
|
|
||||||
|
@ -60,9 +61,11 @@ class OptionsSheetDialogFragment : DialogFragment(), View.OnClickListener {
|
||||||
}
|
}
|
||||||
|
|
||||||
actionSettings.setOnClickListener(this)
|
actionSettings.setOnClickListener(this)
|
||||||
|
actionRate.setOnClickListener(this)
|
||||||
actionLibrary.setOnClickListener(this)
|
actionLibrary.setOnClickListener(this)
|
||||||
actionFolders.setOnClickListener(this)
|
actionFolders.setOnClickListener(this)
|
||||||
|
|
||||||
|
|
||||||
materialDialog = MaterialDialog(activity!!, BottomSheet())
|
materialDialog = MaterialDialog(activity!!, BottomSheet())
|
||||||
.show {
|
.show {
|
||||||
icon(R.mipmap.ic_launcher_round)
|
icon(R.mipmap.ic_launcher_round)
|
||||||
|
@ -72,11 +75,8 @@ class OptionsSheetDialogFragment : DialogFragment(), View.OnClickListener {
|
||||||
return materialDialog
|
return materialDialog
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
|
|
||||||
private const val TAG: String = "MainOptionsBottomSheetD"
|
|
||||||
|
|
||||||
private const val WHICH_ONE = "which_one"
|
private const val WHICH_ONE = "which_one"
|
||||||
@JvmField
|
@JvmField
|
||||||
var LIBRARY: Int = 0
|
var LIBRARY: Int = 0
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
package code.name.monkey.retromusic.fragments.mainactivity.folders;
|
package code.name.monkey.retromusic.fragments.mainactivity.folders;
|
||||||
|
|
||||||
import android.app.Dialog;
|
import android.app.Dialog;
|
||||||
import android.app.ProgressDialog;
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.media.MediaScannerConnection;
|
import android.media.MediaScannerConnection;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
|
@ -27,6 +26,7 @@ import androidx.recyclerview.widget.RecyclerView;
|
||||||
|
|
||||||
import com.afollestad.materialcab.MaterialCab;
|
import com.afollestad.materialcab.MaterialCab;
|
||||||
import com.google.android.material.appbar.AppBarLayout;
|
import com.google.android.material.appbar.AppBarLayout;
|
||||||
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder;
|
||||||
import com.google.android.material.snackbar.Snackbar;
|
import com.google.android.material.snackbar.Snackbar;
|
||||||
import com.simplecityapps.recyclerview_fastscroll.views.FastScrollRecyclerView;
|
import com.simplecityapps.recyclerview_fastscroll.views.FastScrollRecyclerView;
|
||||||
|
|
||||||
|
@ -64,7 +64,6 @@ import code.name.monkey.retromusic.model.Song;
|
||||||
import code.name.monkey.retromusic.util.FileUtil;
|
import code.name.monkey.retromusic.util.FileUtil;
|
||||||
import code.name.monkey.retromusic.util.PreferenceUtil;
|
import code.name.monkey.retromusic.util.PreferenceUtil;
|
||||||
import code.name.monkey.retromusic.util.RetroColorUtil;
|
import code.name.monkey.retromusic.util.RetroColorUtil;
|
||||||
import code.name.monkey.retromusic.util.RetroUtil;
|
|
||||||
import code.name.monkey.retromusic.util.ViewUtil;
|
import code.name.monkey.retromusic.util.ViewUtil;
|
||||||
import code.name.monkey.retromusic.views.BreadCrumbLayout;
|
import code.name.monkey.retromusic.views.BreadCrumbLayout;
|
||||||
|
|
||||||
|
@ -729,14 +728,13 @@ public class FoldersFragment extends AbsMainActivityFragment implements
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Dialog createDialog(@NonNull Context context) {
|
protected Dialog createDialog(@NonNull Context context) {
|
||||||
ProgressDialog dialog = new ProgressDialog(context);
|
return new MaterialAlertDialogBuilder(context)
|
||||||
dialog.setIndeterminate(true);
|
.setTitle(R.string.listing_files)
|
||||||
dialog.setTitle(R.string.listing_files);
|
.setCancelable(false)
|
||||||
dialog.setCancelable(false);
|
.setView(R.layout.loading)
|
||||||
dialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
|
.setOnCancelListener(dialog -> cancel(false))
|
||||||
dialog.setOnCancelListener(dialog1 -> cancel(false));
|
.setOnDismissListener(dialog -> cancel(false))
|
||||||
dialog.setOnDismissListener(dialog1 -> cancel(false));
|
.create();
|
||||||
return dialog;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,6 +56,9 @@ public class OptionMenuItemView extends FrameLayout {
|
||||||
int accentColor = ThemeStore.Companion.accentColor(context);
|
int accentColor = ThemeStore.Companion.accentColor(context);
|
||||||
setBackground(ContextCompat.getDrawable(context, R.drawable.menu_item_background));
|
setBackground(ContextCompat.getDrawable(context, R.drawable.menu_item_background));
|
||||||
|
|
||||||
|
setClickable(true);
|
||||||
|
setFocusable(true);
|
||||||
|
|
||||||
inflate(context, R.layout.item_option_menu, this);
|
inflate(context, R.layout.item_option_menu, this);
|
||||||
|
|
||||||
setBackgroundTintList(ColorStateList.valueOf(ColorUtil.INSTANCE.adjustAlpha(accentColor, 0.22f)));
|
setBackgroundTintList(ColorStateList.valueOf(ColorUtil.INSTANCE.adjustAlpha(accentColor, 0.22f)));
|
||||||
|
|
|
@ -13,9 +13,6 @@
|
||||||
android:id="@+id/actionLibrary"
|
android:id="@+id/actionLibrary"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="?rectSelector"
|
|
||||||
android:clickable="true"
|
|
||||||
android:focusable="true"
|
|
||||||
app:optionIcon="@drawable/ic_library_music_white_24dp"
|
app:optionIcon="@drawable/ic_library_music_white_24dp"
|
||||||
app:optionTitle="@string/library" />
|
app:optionTitle="@string/library" />
|
||||||
|
|
||||||
|
@ -23,9 +20,6 @@
|
||||||
android:id="@+id/actionFolders"
|
android:id="@+id/actionFolders"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="?rectSelector"
|
|
||||||
android:clickable="true"
|
|
||||||
android:focusable="true"
|
|
||||||
app:optionIcon="@drawable/ic_folder_white_24dp"
|
app:optionIcon="@drawable/ic_folder_white_24dp"
|
||||||
app:optionTitle="@string/folders" />
|
app:optionTitle="@string/folders" />
|
||||||
|
|
||||||
|
@ -33,10 +27,13 @@
|
||||||
android:id="@+id/actionSettings"
|
android:id="@+id/actionSettings"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="?rectSelector"
|
|
||||||
android:clickable="true"
|
|
||||||
android:focusable="true"
|
|
||||||
app:optionIcon="@drawable/ic_settings_white_24dp"
|
app:optionIcon="@drawable/ic_settings_white_24dp"
|
||||||
app:optionTitle="@string/action_settings" />
|
app:optionTitle="@string/action_settings" />
|
||||||
|
|
||||||
|
<code.name.monkey.retromusic.views.OptionMenuItemView
|
||||||
|
android:id="@+id/actionRate"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
app:optionIcon="@drawable/ic_star_white_24dp"
|
||||||
|
app:optionTitle="@string/rate_app" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
Loading…
Reference in a new issue