chore: 移除无用依赖
This commit is contained in:
parent
f24a59daf0
commit
8b31ff6975
|
|
@ -248,12 +248,8 @@ dependencies {
|
||||||
|
|
||||||
implementation 'com.google.code.gson:gson:2.10.1'
|
implementation 'com.google.code.gson:gson:2.10.1'
|
||||||
implementation "org.litepal.android:kotlin:3.0.0"
|
implementation "org.litepal.android:kotlin:3.0.0"
|
||||||
implementation 'cn.jzvd:jiaozivideoplayer:7.7.2.3300'
|
|
||||||
implementation 'com.jaredrummler:colorpicker:1.1.0'
|
implementation 'com.jaredrummler:colorpicker:1.1.0'
|
||||||
|
|
||||||
implementation "com.scwang.smart:refresh-layout-kernel:2.0.1"
|
|
||||||
implementation "com.scwang.smart:refresh-header-material:2.0.1"
|
|
||||||
|
|
||||||
implementation 'com.github.lwj1994:Matisse:0.5.3-20220115'
|
implementation 'com.github.lwj1994:Matisse:0.5.3-20220115'
|
||||||
implementation 'com.github.getActivity:XXPermissions:18.3'
|
implementation 'com.github.getActivity:XXPermissions:18.3'
|
||||||
implementation "com.gyf.immersionbar:immersionbar:3.0.0"
|
implementation "com.gyf.immersionbar:immersionbar:3.0.0"
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,6 @@ import androidx.appcompat.app.AlertDialog
|
||||||
import androidx.appcompat.app.AppCompatActivity
|
import androidx.appcompat.app.AppCompatActivity
|
||||||
import androidx.appcompat.widget.Toolbar
|
import androidx.appcompat.widget.Toolbar
|
||||||
import butterknife.ButterKnife
|
import butterknife.ButterKnife
|
||||||
import cn.jzvd.Jzvd
|
|
||||||
import com.gyf.immersionbar.ImmersionBar
|
import com.gyf.immersionbar.ImmersionBar
|
||||||
import com.huanchengfly.tieba.post.App
|
import com.huanchengfly.tieba.post.App
|
||||||
import com.huanchengfly.tieba.post.App.Companion.INSTANCE
|
import com.huanchengfly.tieba.post.App.Companion.INSTANCE
|
||||||
|
|
@ -54,8 +53,7 @@ abstract class BaseActivity : AppCompatActivity(), ExtraRefreshable, CoroutineSc
|
||||||
private var mTintToolbar: TintToolbar? = null
|
private var mTintToolbar: TintToolbar? = null
|
||||||
private var oldTheme: String = ""
|
private var oldTheme: String = ""
|
||||||
|
|
||||||
var isActivityRunning = true
|
private var isActivityRunning = true
|
||||||
private set
|
|
||||||
private var customStatusColor = -1
|
private var customStatusColor = -1
|
||||||
private var statusBarTinted = false
|
private var statusBarTinted = false
|
||||||
|
|
||||||
|
|
@ -64,7 +62,6 @@ abstract class BaseActivity : AppCompatActivity(), ExtraRefreshable, CoroutineSc
|
||||||
override fun onPause() {
|
override fun onPause() {
|
||||||
super.onPause()
|
super.onPause()
|
||||||
isActivityRunning = false
|
isActivityRunning = false
|
||||||
Jzvd.releaseAllVideos()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//禁止app字体大小跟随系统字体大小调节
|
//禁止app字体大小跟随系统字体大小调节
|
||||||
|
|
|
||||||
|
|
@ -38,8 +38,6 @@ import com.huanchengfly.tieba.post.putBoolean
|
||||||
import com.huanchengfly.tieba.post.putString
|
import com.huanchengfly.tieba.post.putString
|
||||||
import com.huanchengfly.tieba.post.ui.common.theme.utils.ThemeUtils
|
import com.huanchengfly.tieba.post.ui.common.theme.utils.ThemeUtils
|
||||||
import com.huanchengfly.tieba.post.ui.widgets.theme.TintSwipeRefreshLayout
|
import com.huanchengfly.tieba.post.ui.widgets.theme.TintSwipeRefreshLayout
|
||||||
import com.scwang.smart.refresh.header.MaterialHeader
|
|
||||||
import com.scwang.smart.refresh.layout.SmartRefreshLayout
|
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import java.util.Locale
|
import java.util.Locale
|
||||||
|
|
||||||
|
|
@ -193,34 +191,6 @@ object ThemeUtil {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@JvmStatic
|
|
||||||
fun setThemeForSmartRefreshLayout(smartRefreshLayout: SmartRefreshLayout) {
|
|
||||||
val context = smartRefreshLayout.context
|
|
||||||
val resources = context.resources
|
|
||||||
if (resources != null) {
|
|
||||||
smartRefreshLayout.setPrimaryColors(
|
|
||||||
ThemeUtils.getColorByAttr(
|
|
||||||
context,
|
|
||||||
R.attr.colorAccent
|
|
||||||
)
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
fun setThemeForMaterialHeader(materialHeader: MaterialHeader) {
|
|
||||||
val context = materialHeader.context
|
|
||||||
val resources = context.resources
|
|
||||||
if (resources != null) {
|
|
||||||
materialHeader.setProgressBackgroundColorSchemeColor(resources.getColor(R.color.color_swipe_refresh_bg))
|
|
||||||
materialHeader.setColorSchemeColors(
|
|
||||||
ThemeUtils.getColorByAttr(
|
|
||||||
context,
|
|
||||||
R.attr.colorAccent
|
|
||||||
)
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@JvmStatic
|
@JvmStatic
|
||||||
fun isNightMode(): Boolean {
|
fun isNightMode(): Boolean {
|
||||||
return isNightMode(getRawTheme())
|
return isNightMode(getRawTheme())
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue