Added notification icon
This commit is contained in:
parent
642f566f9f
commit
232fa51ea8
7 changed files with 22 additions and 10 deletions
|
@ -54,9 +54,7 @@ class ThemeSettingsFragment : AbsSettingsFragment() {
|
|||
requireActivity().setTheme(PreferenceUtil.getThemeResFromPrefValue(theme))
|
||||
DynamicShortcutManager(requireContext()).updateDynamicShortcuts()
|
||||
}
|
||||
Handler().postDelayed({
|
||||
requireActivity().recreate()
|
||||
}, 400)
|
||||
requireActivity().recreate()
|
||||
true
|
||||
}
|
||||
}
|
||||
|
@ -96,9 +94,7 @@ class ThemeSettingsFragment : AbsSettingsFragment() {
|
|||
requireActivity().setTheme(PreferenceUtil.getThemeResFromPrefValue("black"))
|
||||
DynamicShortcutManager(requireContext()).updateDynamicShortcuts()
|
||||
}
|
||||
Handler().postDelayed({
|
||||
requireActivity().recreate()
|
||||
}, 400)
|
||||
requireActivity().recreate()
|
||||
true
|
||||
}
|
||||
|
||||
|
@ -109,9 +105,7 @@ class ThemeSettingsFragment : AbsSettingsFragment() {
|
|||
ThemeStore.prefs(requireContext()).edit().putBoolean("desaturated_color", desaturated)
|
||||
.apply()
|
||||
PreferenceUtil.getInstance(requireContext()).setDesaturatedColor(desaturated)
|
||||
Handler().postDelayed({
|
||||
requireActivity().recreate()
|
||||
}, 400)
|
||||
requireActivity().recreate()
|
||||
true
|
||||
}
|
||||
|
||||
|
|
|
@ -37,6 +37,7 @@ import androidx.annotation.ColorInt
|
|||
import androidx.core.content.ContextCompat
|
||||
import androidx.core.content.res.ResourcesCompat
|
||||
import androidx.core.view.ViewCompat
|
||||
import code.name.monkey.retromusic.BuildConfig
|
||||
import code.name.monkey.retromusic.R
|
||||
import java.util.*
|
||||
|
||||
|
@ -71,8 +72,10 @@ class LrcView @JvmOverloads constructor(
|
|||
private var mCurrentPlayLineColor: Int = 0
|
||||
private var mNoLrcTextSize: Float = 0.toFloat()
|
||||
private var mNoLrcTextColor: Int = 0
|
||||
|
||||
//是否拖拽中,否的话响应onClick事件
|
||||
private var isDragging: Boolean = false
|
||||
|
||||
//用户开始操作
|
||||
private var isUserScroll: Boolean = false
|
||||
private var isAutoAdjustPosition = true
|
||||
|
@ -213,7 +216,9 @@ class LrcView @JvmOverloads constructor(
|
|||
isAntiAlias = true
|
||||
textAlign = Paint.Align.LEFT
|
||||
textSize = mLrcTextSize
|
||||
typeface = ResourcesCompat.getFont(context, R.font.circular)
|
||||
/* if (BuildConfig.FLAVOR != "nofont") {
|
||||
typeface = ResourcesCompat.getFont(context, R.font.circular)
|
||||
}*/
|
||||
}
|
||||
mDefaultContent = DEFAULT_CONTENT
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue