mirror of
https://github.com/YTVanced/VancedManager
synced 2024-11-16 16:25:11 +00:00
revert back to first version
This commit is contained in:
parent
d7dfb27ca5
commit
f98c21ddbe
1 changed files with 11 additions and 11 deletions
|
@ -62,7 +62,8 @@ class HomeFragment : BindingFragment<FragmentHomeBinding>() {
|
||||||
isFetching.observe(viewLifecycleOwner) { homeRefresh.isRefreshing = it }
|
isFetching.observe(viewLifecycleOwner) { homeRefresh.isRefreshing = it }
|
||||||
|
|
||||||
val prefs = PreferenceManager.getDefaultSharedPreferences(context)
|
val prefs = PreferenceManager.getDefaultSharedPreferences(context)
|
||||||
if (prefs.getInt("LastVersionCode", VERSION_CODE) < VERSION_CODE) {
|
if (prefs.contains("LastVersionCode")) {
|
||||||
|
if (prefs.getInt("LastVersionCode", -1) < VERSION_CODE) {
|
||||||
showDialog(
|
showDialog(
|
||||||
AppInfoDialog.newInstance(
|
AppInfoDialog.newInstance(
|
||||||
appName = getString(R.string.app_name),
|
appName = getString(R.string.app_name),
|
||||||
|
@ -71,9 +72,8 @@ class HomeFragment : BindingFragment<FragmentHomeBinding>() {
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
prefs.edit().putInt("LastVersionCode", VERSION_CODE).apply()
|
prefs.edit().putInt("LastVersionCode", VERSION_CODE).apply()
|
||||||
} else {
|
|
||||||
prefs.edit().putInt("LastVersionCode", VERSION_CODE).apply()
|
|
||||||
}
|
}
|
||||||
|
} else prefs.edit().putInt("LastVersionCode", VERSION_CODE).apply()
|
||||||
|
|
||||||
recyclerAppList.apply {
|
recyclerAppList.apply {
|
||||||
layoutManager = LinearLayoutManager(requireActivity())
|
layoutManager = LinearLayoutManager(requireActivity())
|
||||||
|
|
Loading…
Reference in a new issue