Remove unused user identifier

This commit is contained in:
davide 2022-08-16 10:55:22 +02:00
parent 29619e1b2b
commit 1fb16bcbdd
7 changed files with 0 additions and 16 deletions

View File

@ -101,7 +101,6 @@ class HomeActivity : AppCompatActivity(), SearchView.OnQueryTextListener, DIAwar
private var fullHeightCards: Boolean = false
private var itemsNumber: Int = 200
private var elementsShown: ItemType = ItemType.UNREAD
private var userIdentifier: String = ""
private var displayAccountHeader: Boolean = false
private var infiniteScroll: Boolean = false
private var lastFetchDone: Boolean = false
@ -357,7 +356,6 @@ class HomeActivity : AppCompatActivity(), SearchView.OnQueryTextListener, DIAwar
displayAllCount = settings.getBoolean("display_other_count", false)
fullHeightCards = settings.getBoolean("full_height_cards", false)
itemsNumber = settings.getString("prefer_api_items_number", "200").toInt()
userIdentifier = settings.getString("unique_id", "")
displayAccountHeader = settings.getBoolean("account_header_displaying", false)
infiniteScroll = settings.getBoolean("infinite_loading", false)
updateSources = settings.getBoolean("update_sources", true)
@ -928,7 +926,6 @@ class HomeActivity : AppCompatActivity(), SearchView.OnQueryTextListener, DIAwar
articleViewer,
fullHeightCards,
appColors,
userIdentifier,
config
) {
updateItems(it)
@ -942,7 +939,6 @@ class HomeActivity : AppCompatActivity(), SearchView.OnQueryTextListener, DIAwar
customTabActivityHelper,
internalBrowser,
articleViewer,
userIdentifier,
appColors,
config
) {

View File

@ -34,7 +34,6 @@ class LoginActivity() : AppCompatActivity(), DIAware {
private var isWithHTTPLogin = false
private val settings = Settings()
private lateinit var userIdentifier: String
private lateinit var appColors: AppColors
private lateinit var binding: ActivityLoginBinding
@ -54,8 +53,6 @@ class LoginActivity() : AppCompatActivity(), DIAware {
handleBaseUrlFail()
userIdentifier = settings.getString("unique_id", "")
if (settings.getString("url", "").isNotEmpty()) {
goToMain()
}

View File

@ -38,10 +38,6 @@ class MyApp : MultiDexApplication(), DIAware {
config = Config()
settings = Settings()
if (settings.getString("unique_id", "").isEmpty()) {
settings.putString("unique_id", randomUUID().toString())
}
initDrawerImageLoader()
initTheme()

View File

@ -35,7 +35,6 @@ class ReaderActivity : AppCompatActivity(), DIAware {
private var markOnScroll: Boolean = false
private var currentItem: Int = 0
private lateinit var userIdentifier: String
private lateinit var appColors: AppColors
private lateinit var toolbarMenu: Menu
@ -89,7 +88,6 @@ class ReaderActivity : AppCompatActivity(), DIAware {
supportActionBar?.setDisplayHomeAsUpEnabled(true)
supportActionBar?.setDisplayShowHomeEnabled(true)
userIdentifier = settings.getString("unique_id", "")
markOnScroll = settings.getBoolean("mark_on_scroll", false)
activeAlignment = settings.getInt("text_align", JUSTIFY)

View File

@ -38,7 +38,6 @@ class ItemCardAdapter(
private val articleViewer: Boolean,
private val fullHeightCards: Boolean,
override val appColors: AppColors,
override val userIdentifier: String,
override val config: Config,
override val updateItems: (ArrayList<SelfossModel.Item>) -> Unit
) : ItemsAdapter<ItemCardAdapter.ViewHolder>() {

View File

@ -28,7 +28,6 @@ class ItemListAdapter(
private val helper: CustomTabActivityHelper,
private val internalBrowser: Boolean,
private val articleViewer: Boolean,
override val userIdentifier: String,
override val appColors: AppColors,
override val config: Config,
override val updateItems: (ArrayList<SelfossModel.Item>) -> Unit

View File

@ -21,7 +21,6 @@ abstract class ItemsAdapter<VH : RecyclerView.ViewHolder?> : RecyclerView.Adapte
abstract var items: ArrayList<SelfossModel.Item>
abstract val repository: Repository
abstract val db: AppDatabase
abstract val userIdentifier: String
abstract val app: Activity
abstract val appColors: AppColors
abstract val config: Config