mirror of
https://github.com/accelforce/Yuito
synced 2025-01-18 10:24:07 +01:00
fix crash when applying new emoji font on Android 12 (#2420)
This commit is contained in:
parent
d4eeef99d0
commit
79c8f59e4e
@ -15,6 +15,7 @@ import androidx.preference.Preference
|
|||||||
import androidx.preference.PreferenceManager
|
import androidx.preference.PreferenceManager
|
||||||
import com.keylesspalace.tusky.MainActivity
|
import com.keylesspalace.tusky.MainActivity
|
||||||
import com.keylesspalace.tusky.R
|
import com.keylesspalace.tusky.R
|
||||||
|
import com.keylesspalace.tusky.components.notifications.NotificationHelper
|
||||||
import com.keylesspalace.tusky.databinding.DialogEmojicompatBinding
|
import com.keylesspalace.tusky.databinding.DialogEmojicompatBinding
|
||||||
import com.keylesspalace.tusky.databinding.ItemEmojiPrefBinding
|
import com.keylesspalace.tusky.databinding.ItemEmojiPrefBinding
|
||||||
import com.keylesspalace.tusky.util.EmojiCompatFont
|
import com.keylesspalace.tusky.util.EmojiCompatFont
|
||||||
@ -220,7 +221,7 @@ class EmojiPreference(
|
|||||||
context,
|
context,
|
||||||
0x1f973, // This is the codepoint of the party face emoji :D
|
0x1f973, // This is the codepoint of the party face emoji :D
|
||||||
launchIntent,
|
launchIntent,
|
||||||
PendingIntent.FLAG_CANCEL_CURRENT
|
NotificationHelper.pendingIntentFlags(false)
|
||||||
)
|
)
|
||||||
val mgr = context.getSystemService(Context.ALARM_SERVICE) as AlarmManager
|
val mgr = context.getSystemService(Context.ALARM_SERVICE) as AlarmManager
|
||||||
mgr.set(
|
mgr.set(
|
||||||
|
Loading…
Reference in New Issue
Block a user