Remove unused user identifier
This commit is contained in:
parent
29619e1b2b
commit
1fb16bcbdd
@ -101,7 +101,6 @@ class HomeActivity : AppCompatActivity(), SearchView.OnQueryTextListener, DIAwar
|
|||||||
private var fullHeightCards: Boolean = false
|
private var fullHeightCards: Boolean = false
|
||||||
private var itemsNumber: Int = 200
|
private var itemsNumber: Int = 200
|
||||||
private var elementsShown: ItemType = ItemType.UNREAD
|
private var elementsShown: ItemType = ItemType.UNREAD
|
||||||
private var userIdentifier: String = ""
|
|
||||||
private var displayAccountHeader: Boolean = false
|
private var displayAccountHeader: Boolean = false
|
||||||
private var infiniteScroll: Boolean = false
|
private var infiniteScroll: Boolean = false
|
||||||
private var lastFetchDone: Boolean = false
|
private var lastFetchDone: Boolean = false
|
||||||
@ -357,7 +356,6 @@ class HomeActivity : AppCompatActivity(), SearchView.OnQueryTextListener, DIAwar
|
|||||||
displayAllCount = settings.getBoolean("display_other_count", false)
|
displayAllCount = settings.getBoolean("display_other_count", false)
|
||||||
fullHeightCards = settings.getBoolean("full_height_cards", false)
|
fullHeightCards = settings.getBoolean("full_height_cards", false)
|
||||||
itemsNumber = settings.getString("prefer_api_items_number", "200").toInt()
|
itemsNumber = settings.getString("prefer_api_items_number", "200").toInt()
|
||||||
userIdentifier = settings.getString("unique_id", "")
|
|
||||||
displayAccountHeader = settings.getBoolean("account_header_displaying", false)
|
displayAccountHeader = settings.getBoolean("account_header_displaying", false)
|
||||||
infiniteScroll = settings.getBoolean("infinite_loading", false)
|
infiniteScroll = settings.getBoolean("infinite_loading", false)
|
||||||
updateSources = settings.getBoolean("update_sources", true)
|
updateSources = settings.getBoolean("update_sources", true)
|
||||||
@ -928,7 +926,6 @@ class HomeActivity : AppCompatActivity(), SearchView.OnQueryTextListener, DIAwar
|
|||||||
articleViewer,
|
articleViewer,
|
||||||
fullHeightCards,
|
fullHeightCards,
|
||||||
appColors,
|
appColors,
|
||||||
userIdentifier,
|
|
||||||
config
|
config
|
||||||
) {
|
) {
|
||||||
updateItems(it)
|
updateItems(it)
|
||||||
@ -942,7 +939,6 @@ class HomeActivity : AppCompatActivity(), SearchView.OnQueryTextListener, DIAwar
|
|||||||
customTabActivityHelper,
|
customTabActivityHelper,
|
||||||
internalBrowser,
|
internalBrowser,
|
||||||
articleViewer,
|
articleViewer,
|
||||||
userIdentifier,
|
|
||||||
appColors,
|
appColors,
|
||||||
config
|
config
|
||||||
) {
|
) {
|
||||||
|
@ -34,7 +34,6 @@ class LoginActivity() : AppCompatActivity(), DIAware {
|
|||||||
private var isWithHTTPLogin = false
|
private var isWithHTTPLogin = false
|
||||||
|
|
||||||
private val settings = Settings()
|
private val settings = Settings()
|
||||||
private lateinit var userIdentifier: String
|
|
||||||
private lateinit var appColors: AppColors
|
private lateinit var appColors: AppColors
|
||||||
private lateinit var binding: ActivityLoginBinding
|
private lateinit var binding: ActivityLoginBinding
|
||||||
|
|
||||||
@ -54,8 +53,6 @@ class LoginActivity() : AppCompatActivity(), DIAware {
|
|||||||
|
|
||||||
handleBaseUrlFail()
|
handleBaseUrlFail()
|
||||||
|
|
||||||
userIdentifier = settings.getString("unique_id", "")
|
|
||||||
|
|
||||||
if (settings.getString("url", "").isNotEmpty()) {
|
if (settings.getString("url", "").isNotEmpty()) {
|
||||||
goToMain()
|
goToMain()
|
||||||
}
|
}
|
||||||
|
@ -38,10 +38,6 @@ class MyApp : MultiDexApplication(), DIAware {
|
|||||||
config = Config()
|
config = Config()
|
||||||
settings = Settings()
|
settings = Settings()
|
||||||
|
|
||||||
if (settings.getString("unique_id", "").isEmpty()) {
|
|
||||||
settings.putString("unique_id", randomUUID().toString())
|
|
||||||
}
|
|
||||||
|
|
||||||
initDrawerImageLoader()
|
initDrawerImageLoader()
|
||||||
|
|
||||||
initTheme()
|
initTheme()
|
||||||
|
@ -35,7 +35,6 @@ class ReaderActivity : AppCompatActivity(), DIAware {
|
|||||||
|
|
||||||
private var markOnScroll: Boolean = false
|
private var markOnScroll: Boolean = false
|
||||||
private var currentItem: Int = 0
|
private var currentItem: Int = 0
|
||||||
private lateinit var userIdentifier: String
|
|
||||||
private lateinit var appColors: AppColors
|
private lateinit var appColors: AppColors
|
||||||
|
|
||||||
private lateinit var toolbarMenu: Menu
|
private lateinit var toolbarMenu: Menu
|
||||||
@ -89,7 +88,6 @@ class ReaderActivity : AppCompatActivity(), DIAware {
|
|||||||
supportActionBar?.setDisplayHomeAsUpEnabled(true)
|
supportActionBar?.setDisplayHomeAsUpEnabled(true)
|
||||||
supportActionBar?.setDisplayShowHomeEnabled(true)
|
supportActionBar?.setDisplayShowHomeEnabled(true)
|
||||||
|
|
||||||
userIdentifier = settings.getString("unique_id", "")
|
|
||||||
markOnScroll = settings.getBoolean("mark_on_scroll", false)
|
markOnScroll = settings.getBoolean("mark_on_scroll", false)
|
||||||
activeAlignment = settings.getInt("text_align", JUSTIFY)
|
activeAlignment = settings.getInt("text_align", JUSTIFY)
|
||||||
|
|
||||||
|
@ -38,7 +38,6 @@ class ItemCardAdapter(
|
|||||||
private val articleViewer: Boolean,
|
private val articleViewer: Boolean,
|
||||||
private val fullHeightCards: Boolean,
|
private val fullHeightCards: Boolean,
|
||||||
override val appColors: AppColors,
|
override val appColors: AppColors,
|
||||||
override val userIdentifier: String,
|
|
||||||
override val config: Config,
|
override val config: Config,
|
||||||
override val updateItems: (ArrayList<SelfossModel.Item>) -> Unit
|
override val updateItems: (ArrayList<SelfossModel.Item>) -> Unit
|
||||||
) : ItemsAdapter<ItemCardAdapter.ViewHolder>() {
|
) : ItemsAdapter<ItemCardAdapter.ViewHolder>() {
|
||||||
|
@ -28,7 +28,6 @@ class ItemListAdapter(
|
|||||||
private val helper: CustomTabActivityHelper,
|
private val helper: CustomTabActivityHelper,
|
||||||
private val internalBrowser: Boolean,
|
private val internalBrowser: Boolean,
|
||||||
private val articleViewer: Boolean,
|
private val articleViewer: Boolean,
|
||||||
override val userIdentifier: String,
|
|
||||||
override val appColors: AppColors,
|
override val appColors: AppColors,
|
||||||
override val config: Config,
|
override val config: Config,
|
||||||
override val updateItems: (ArrayList<SelfossModel.Item>) -> Unit
|
override val updateItems: (ArrayList<SelfossModel.Item>) -> Unit
|
||||||
|
@ -21,7 +21,6 @@ abstract class ItemsAdapter<VH : RecyclerView.ViewHolder?> : RecyclerView.Adapte
|
|||||||
abstract var items: ArrayList<SelfossModel.Item>
|
abstract var items: ArrayList<SelfossModel.Item>
|
||||||
abstract val repository: Repository
|
abstract val repository: Repository
|
||||||
abstract val db: AppDatabase
|
abstract val db: AppDatabase
|
||||||
abstract val userIdentifier: String
|
|
||||||
abstract val app: Activity
|
abstract val app: Activity
|
||||||
abstract val appColors: AppColors
|
abstract val appColors: AppColors
|
||||||
abstract val config: Config
|
abstract val config: Config
|
||||||
|
Loading…
Reference in New Issue
Block a user