enable custom emoji fonts for all api levels again
This commit is contained in:
parent
e4803019b8
commit
28940169c6
4 changed files with 4 additions and 19 deletions
|
@ -72,7 +72,7 @@ class AccountActivity : BottomSheetActivity(), ActionButtonActivity, HasSupportF
|
|||
private val accountFieldAdapter = AccountFieldAdapter(this)
|
||||
|
||||
private lateinit var accountId: String
|
||||
private var followState: FollowState? = null
|
||||
private var followState: FollowState = FollowState.NOT_FOLLOWING
|
||||
private var blocking: Boolean = false
|
||||
private var muting: Boolean = false
|
||||
private var showingReblogs: Boolean = false
|
||||
|
@ -144,9 +144,6 @@ class AccountActivity : BottomSheetActivity(), ActionButtonActivity, HasSupportF
|
|||
|
||||
val intent = intent
|
||||
accountId = intent.getStringExtra(KEY_ACCOUNT_ID)
|
||||
followState = FollowState.NOT_FOLLOWING
|
||||
blocking = false
|
||||
muting = false
|
||||
|
||||
loadedAccount = null
|
||||
|
||||
|
@ -299,12 +296,7 @@ class AccountActivity : BottomSheetActivity(), ActionButtonActivity, HasSupportF
|
|||
accountUsernameTextView.text = usernameFormatted
|
||||
accountDisplayNameTextView.text = CustomEmojiHelper.emojifyString(account.name, account.emojis, accountDisplayNameTextView)
|
||||
if (supportActionBar != null) {
|
||||
try {
|
||||
supportActionBar?.title = EmojiCompat.get().process(account.name)
|
||||
} catch (e: IllegalStateException) {
|
||||
// some Android versions seem to have problems with custom emoji fonts
|
||||
supportActionBar?.title = account.name
|
||||
}
|
||||
supportActionBar?.title = EmojiCompat.get().process(account.name)
|
||||
|
||||
val subtitle = String.format(getString(R.string.status_username_format),
|
||||
account.username)
|
||||
|
|
|
@ -68,12 +68,6 @@ public class PreferencesFragment extends PreferenceFragment implements SharedPre
|
|||
|
||||
addPreferencesFromResource(preference);
|
||||
|
||||
Preference emojiPreference = findPreference("emojiCompat");
|
||||
if(emojiPreference != null && Build.VERSION.SDK_INT <= Build.VERSION_CODES.LOLLIPOP) {
|
||||
//disable emoji fonts on Android 5 because they cause problems
|
||||
((PreferenceCategory)findPreference("categoryAppearance")).removePreference(emojiPreference);
|
||||
}
|
||||
|
||||
Preference regexPref = findPreference("tabFilterRegex");
|
||||
if (regexPref != null) regexPref.setOnPreferenceClickListener(pref -> {
|
||||
// Reset the error dialog when shown; if the dialog was closed with the cancel button
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue