import/export settings
This commit is contained in:
parent
b559a13bab
commit
49e90a27b8
97 changed files with 1721 additions and 1441 deletions
|
@ -1,6 +1,5 @@
|
|||
package ani.dantotsu.offline
|
||||
|
||||
import android.content.Context
|
||||
import android.os.Bundle
|
||||
import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
|
@ -12,7 +11,7 @@ import ani.dantotsu.databinding.FragmentOfflineBinding
|
|||
import ani.dantotsu.isOnline
|
||||
import ani.dantotsu.navBarHeight
|
||||
import ani.dantotsu.settings.saving.PrefName
|
||||
import ani.dantotsu.settings.saving.PrefWrapper
|
||||
import ani.dantotsu.settings.saving.PrefManager
|
||||
import ani.dantotsu.startMainActivity
|
||||
import ani.dantotsu.statusBarHeight
|
||||
|
||||
|
@ -28,7 +27,7 @@ class OfflineFragment : Fragment() {
|
|||
topMargin = statusBarHeight
|
||||
bottomMargin = navBarHeight
|
||||
}
|
||||
offline = PrefWrapper.getVal(PrefName.OfflineMode, false)
|
||||
offline = PrefManager.getVal(PrefName.OfflineMode)
|
||||
binding.noInternet.text =
|
||||
if (offline) "Offline Mode" else getString(R.string.no_internet)
|
||||
binding.refreshButton.visibility = if (offline) View.GONE else View.VISIBLE
|
||||
|
@ -42,6 +41,6 @@ class OfflineFragment : Fragment() {
|
|||
|
||||
override fun onResume() {
|
||||
super.onResume()
|
||||
offline = PrefWrapper.getVal(PrefName.OfflineMode, false)
|
||||
offline = PrefManager.getVal(PrefName.OfflineMode)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue