Search in sources :

Example 1 with StickersArchiveAlert

use of org.telegram.ui.Components.StickersArchiveAlert in project Telegram-FOSS by Telegram-FOSS-Team.

the class MediaDataController method processStickerSetInstallResultArchive.

public void processStickerSetInstallResultArchive(BaseFragment baseFragment, boolean showSettings, int type, TLRPC.TL_messages_stickerSetInstallResultArchive response) {
    for (int i = 0, size = response.sets.size(); i < size; i++) {
        installedStickerSetsById.remove(response.sets.get(i).set.id);
    }
    loadArchivedStickersCount(type, false);
    getNotificationCenter().postNotificationName(NotificationCenter.needAddArchivedStickers, response.sets);
    if (baseFragment != null && baseFragment.getParentActivity() != null) {
        StickersArchiveAlert alert = new StickersArchiveAlert(baseFragment.getParentActivity(), showSettings ? baseFragment : null, response.sets);
        baseFragment.showDialog(alert.create());
    }
}
Also used : StickersArchiveAlert(org.telegram.ui.Components.StickersArchiveAlert) Paint(android.graphics.Paint)

Aggregations

Paint (android.graphics.Paint)1 StickersArchiveAlert (org.telegram.ui.Components.StickersArchiveAlert)1