style: Only Show Built In Emoji

This commit is contained in:
xtaodada 2022-08-20 18:09:09 +08:00
parent afe750d4ed
commit 01d7075d9d
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
2 changed files with 6 additions and 3 deletions

View File

@ -325,7 +325,11 @@ public class EmojiTabsStrip extends ScrollableHorizontalScrollView {
}
first = false;
ArrayList<EmojiView.EmojiPack> emojiPacks = parent.getEmojipacks();
if (emojiPacks == null || NaConfig.INSTANCE.getOnlyShowBuiltInEmoji().Bool()) {
if (emojiPacks == null) {
return;
}
final boolean isPremium = UserConfig.getInstance(UserConfig.selectedAccount).isPremium();
if (NaConfig.INSTANCE.getOnlyShowBuiltInEmoji().Bool() && !isPremium) {
return;
}
if (emojipackTabs == null) {
@ -338,7 +342,6 @@ public class EmojiTabsStrip extends ScrollableHorizontalScrollView {
appearAnimation = null;
}
appearCount = emojiPacks.size();
final boolean isPremium = UserConfig.getInstance(UserConfig.selectedAccount).isPremium();
for (int i = 0; i < emojipackTabs.size(); ++i) {
EmojiTabButton emojipackTab = emojipackTabs.get(i);
EmojiView.EmojiPack pack = null;

View File

@ -53,5 +53,5 @@
<string name="ShowPhotoOpenInExternalApp">查看图片可以使用其他应用打开</string>
<string name="QuickToggleAnonymous">快速切换匿名发言</string>
<string name="QuickToggleAnonymousNotice">如果你是群组的所有者的话</string>
<string name="OnlyShowBuiltInEmoji">仅显示内置 Emoji</string>
<string name="OnlyShowBuiltInEmoji">非大会员仅显示内置 Emoji</string>
</resources>