mirror of
https://github.com/pachli/pachli-android.git
synced 2025-02-07 23:48:49 +01:00
change: Remove unused code (#1044)
This commit is contained in:
parent
2bdab8bec9
commit
5a35009e35
@ -22,7 +22,6 @@ import android.view.LayoutInflater
|
|||||||
import android.view.View
|
import android.view.View
|
||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
import android.widget.ArrayAdapter
|
import android.widget.ArrayAdapter
|
||||||
import androidx.preference.PreferenceManager
|
|
||||||
import app.pachli.core.activity.databinding.ItemAutocompleteAccountBinding
|
import app.pachli.core.activity.databinding.ItemAutocompleteAccountBinding
|
||||||
import app.pachli.core.database.model.AccountEntity
|
import app.pachli.core.database.model.AccountEntity
|
||||||
import app.pachli.core.designsystem.R as DR
|
import app.pachli.core.designsystem.R as DR
|
||||||
@ -42,8 +41,6 @@ class AccountSelectionAdapter(
|
|||||||
|
|
||||||
val account = getItem(position)
|
val account = getItem(position)
|
||||||
if (account != null) {
|
if (account != null) {
|
||||||
val pm = PreferenceManager.getDefaultSharedPreferences(binding.avatar.context)
|
|
||||||
|
|
||||||
binding.username.text = account.fullName
|
binding.username.text = account.fullName
|
||||||
binding.displayName.text = account.displayName.emojify(account.emojis, binding.displayName, animateEmojis)
|
binding.displayName.text = account.displayName.emojify(account.emojis, binding.displayName, animateEmojis)
|
||||||
binding.avatarBadge.visibility = View.GONE // We never want to display the bot badge here
|
binding.avatarBadge.visibility = View.GONE // We never want to display the bot badge here
|
||||||
|
@ -255,17 +255,6 @@ class AccountManager @Inject constructor(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Finds an account by its string identifier
|
|
||||||
* @param identifier the string identifier of the account
|
|
||||||
* @return the requested account or null if it was not found
|
|
||||||
*/
|
|
||||||
fun getAccountByIdentifier(identifier: String): AccountEntity? {
|
|
||||||
return accounts.find {
|
|
||||||
identifier == it.identifier
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return true if the name of the currently-selected account should be displayed in UIs
|
* @return true if the name of the currently-selected account should be displayed in UIs
|
||||||
*/
|
*/
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
package app.pachli.core.network.model
|
package app.pachli.core.network.model
|
||||||
|
|
||||||
import android.app.Application
|
|
||||||
import android.text.SpannableStringBuilder
|
import android.text.SpannableStringBuilder
|
||||||
import android.text.style.URLSpan
|
import android.text.style.URLSpan
|
||||||
import app.pachli.core.common.extensions.getOrElse
|
import app.pachli.core.common.extensions.getOrElse
|
||||||
|
Loading…
x
Reference in New Issue
Block a user