Java Code Examples for org.telegram.messenger.NotificationCenter#emojiDidLoad()
The following examples show how to use
org.telegram.messenger.NotificationCenter#emojiDidLoad() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SettingsActivity.java From Telegram-FOSS with GNU General Public License v2.0 | 6 votes |
@Override public void didReceivedNotification(int id, int account, Object... args) { if (id == NotificationCenter.updateInterfaces) { int mask = (Integer) args[0]; if ((mask & MessagesController.UPDATE_MASK_AVATAR) != 0 || (mask & MessagesController.UPDATE_MASK_NAME) != 0) { updateUserData(); } } else if (id == NotificationCenter.userInfoDidLoad) { Integer uid = (Integer) args[0]; if (uid == UserConfig.getInstance(currentAccount).getClientUserId() && listAdapter != null) { userInfo = (TLRPC.UserFull) args[1]; if (!TextUtils.equals(userInfo.about, currentBio)) { listAdapter.notifyItemChanged(bioRow); } } } else if (id == NotificationCenter.emojiDidLoad) { if (listView != null) { listView.invalidateViews(); } } }
Example 2
Source File: StickerMasksAlert.java From Telegram-FOSS with GNU General Public License v2.0 | 6 votes |
@Override public void didReceivedNotification(int id, int account, Object... args) { if (id == NotificationCenter.stickersDidLoad) { if ((Integer) args[0] == currentType) { updateStickerTabs(); reloadStickersAdapter(); checkPanels(); } } else if (id == NotificationCenter.recentDocumentsDidLoad) { boolean isGif = (Boolean) args[0]; int type = (Integer) args[1]; if (!isGif && (type == currentType || type == MediaDataController.TYPE_FAVE)) { checkDocuments(false); } } else if (id == NotificationCenter.emojiDidLoad) { if (gridView != null) { int count = gridView.getChildCount(); for (int a = 0; a < count; a++) { View child = gridView.getChildAt(a); if (child instanceof StickerSetNameCell || child instanceof StickerEmojiCell) { child.invalidate(); } } } } }
Example 3
Source File: StickerMasksAlert.java From Telegram with GNU General Public License v2.0 | 6 votes |
@Override public void didReceivedNotification(int id, int account, Object... args) { if (id == NotificationCenter.stickersDidLoad) { if ((Integer) args[0] == currentType) { updateStickerTabs(); reloadStickersAdapter(); checkPanels(); } } else if (id == NotificationCenter.recentDocumentsDidLoad) { boolean isGif = (Boolean) args[0]; int type = (Integer) args[1]; if (!isGif && (type == currentType || type == MediaDataController.TYPE_FAVE)) { checkDocuments(false); } } else if (id == NotificationCenter.emojiDidLoad) { if (gridView != null) { int count = gridView.getChildCount(); for (int a = 0; a < count; a++) { View child = gridView.getChildAt(a); if (child instanceof StickerSetNameCell || child instanceof StickerEmojiCell) { child.invalidate(); } } } } }
Example 4
Source File: SettingsActivity.java From Telegram with GNU General Public License v2.0 | 6 votes |
@Override public void didReceivedNotification(int id, int account, Object... args) { if (id == NotificationCenter.updateInterfaces) { int mask = (Integer) args[0]; if ((mask & MessagesController.UPDATE_MASK_AVATAR) != 0 || (mask & MessagesController.UPDATE_MASK_NAME) != 0) { updateUserData(); } } else if (id == NotificationCenter.userInfoDidLoad) { Integer uid = (Integer) args[0]; if (uid == UserConfig.getInstance(currentAccount).getClientUserId() && listAdapter != null) { userInfo = (TLRPC.UserFull) args[1]; if (!TextUtils.equals(userInfo.about, currentBio)) { listAdapter.notifyItemChanged(bioRow); } } } else if (id == NotificationCenter.emojiDidLoad) { if (listView != null) { listView.invalidateViews(); } } }
Example 5
Source File: VoIPActivity.java From Telegram with GNU General Public License v2.0 | 5 votes |
@Override public void didReceivedNotification(int id, int account, Object... args) { if (id == NotificationCenter.emojiDidLoad) { for (ImageView iv : keyEmojiViews) { iv.invalidate(); } } if (id == NotificationCenter.closeInCallActivity) { finish(); } }
Example 6
Source File: PhotoViewerCaptionEnterView.java From Telegram with GNU General Public License v2.0 | 5 votes |
@Override public void didReceivedNotification(int id, int account, Object... args) { if (id == NotificationCenter.emojiDidLoad) { if (emojiView != null) { emojiView.invalidateViews(); } } }
Example 7
Source File: StickersAlert.java From Telegram with GNU General Public License v2.0 | 5 votes |
@Override public void didReceivedNotification(int id, int account, Object... args) { if (id == NotificationCenter.emojiDidLoad) { if (gridView != null) { int count = gridView.getChildCount(); for (int a = 0; a < count; a++) { gridView.getChildAt(a).invalidate(); } } if (ContentPreviewViewer.getInstance().isVisible()) { ContentPreviewViewer.getInstance().close(); } ContentPreviewViewer.getInstance().reset(); } }
Example 8
Source File: EditTextEmoji.java From Telegram with GNU General Public License v2.0 | 5 votes |
@Override public void didReceivedNotification(int id, int account, Object... args) { if (id == NotificationCenter.emojiDidLoad) { if (emojiView != null) { emojiView.invalidateViews(); } } }
Example 9
Source File: FiltersListBottomSheet.java From Telegram with GNU General Public License v2.0 | 5 votes |
@Override public void didReceivedNotification(int id, int account, Object... args) { if (id == NotificationCenter.emojiDidLoad) { if (listView != null) { int count = listView.getChildCount(); for (int a = 0; a < count; a++) { listView.getChildAt(a).invalidate(); } } } }
Example 10
Source File: PrivacyControlActivity.java From Telegram with GNU General Public License v2.0 | 5 votes |
@Override public void didReceivedNotification(int id, int account, Object... args) { if (id == NotificationCenter.privacyRulesUpdated) { checkPrivacy(); } else if (id == NotificationCenter.emojiDidLoad) { listView.invalidateViews(); } else if (id == NotificationCenter.didSetNewWallpapper) { if (messageCell != null) { messageCell.invalidate(); } } }
Example 11
Source File: IdenticonActivity.java From Telegram with GNU General Public License v2.0 | 5 votes |
@Override public void didReceivedNotification(int id, int account, Object... args) { if (id == NotificationCenter.emojiDidLoad) { if (emojiTextView != null) { emojiTextView.invalidate(); } } }
Example 12
Source File: VoIPActivity.java From Telegram-FOSS with GNU General Public License v2.0 | 5 votes |
@Override public void didReceivedNotification(int id, int account, Object... args) { if (id == NotificationCenter.emojiDidLoad) { for (ImageView iv : keyEmojiViews) { iv.invalidate(); } } if (id == NotificationCenter.closeInCallActivity) { finish(); } }
Example 13
Source File: PhotoViewerCaptionEnterView.java From Telegram-FOSS with GNU General Public License v2.0 | 5 votes |
@Override public void didReceivedNotification(int id, int account, Object... args) { if (id == NotificationCenter.emojiDidLoad) { if (emojiView != null) { emojiView.invalidateViews(); } } }
Example 14
Source File: StickersAlert.java From Telegram-FOSS with GNU General Public License v2.0 | 5 votes |
@Override public void didReceivedNotification(int id, int account, Object... args) { if (id == NotificationCenter.emojiDidLoad) { if (gridView != null) { int count = gridView.getChildCount(); for (int a = 0; a < count; a++) { gridView.getChildAt(a).invalidate(); } } if (ContentPreviewViewer.getInstance().isVisible()) { ContentPreviewViewer.getInstance().close(); } ContentPreviewViewer.getInstance().reset(); } }
Example 15
Source File: EditTextEmoji.java From Telegram-FOSS with GNU General Public License v2.0 | 5 votes |
@Override public void didReceivedNotification(int id, int account, Object... args) { if (id == NotificationCenter.emojiDidLoad) { if (emojiView != null) { emojiView.invalidateViews(); } } }
Example 16
Source File: FiltersListBottomSheet.java From Telegram-FOSS with GNU General Public License v2.0 | 5 votes |
@Override public void didReceivedNotification(int id, int account, Object... args) { if (id == NotificationCenter.emojiDidLoad) { if (listView != null) { int count = listView.getChildCount(); for (int a = 0; a < count; a++) { listView.getChildAt(a).invalidate(); } } } }
Example 17
Source File: PrivacyControlActivity.java From Telegram-FOSS with GNU General Public License v2.0 | 5 votes |
@Override public void didReceivedNotification(int id, int account, Object... args) { if (id == NotificationCenter.privacyRulesUpdated) { checkPrivacy(); } else if (id == NotificationCenter.emojiDidLoad) { listView.invalidateViews(); } else if (id == NotificationCenter.didSetNewWallpapper) { if (messageCell != null) { messageCell.invalidate(); } } }
Example 18
Source File: IdenticonActivity.java From Telegram-FOSS with GNU General Public License v2.0 | 5 votes |
@Override public void didReceivedNotification(int id, int account, Object... args) { if (id == NotificationCenter.emojiDidLoad) { if (emojiTextView != null) { emojiTextView.invalidate(); } } }