use of org.telegram.ui.Components.BlockingUpdateView in project Telegram-FOSS by Telegram-FOSS-Team.
the class LaunchActivity method showUpdateActivity.
private void showUpdateActivity(int account, TLRPC.TL_help_appUpdate update, boolean check) {
if (blockingUpdateView == null) {
blockingUpdateView = new BlockingUpdateView(LaunchActivity.this) {
@Override
public void setVisibility(int visibility) {
super.setVisibility(visibility);
if (visibility == View.GONE) {
drawerLayoutContainer.setAllowOpenDrawer(true, false);
}
}
};
drawerLayoutContainer.addView(blockingUpdateView, LayoutHelper.createFrame(LayoutHelper.MATCH_PARENT, LayoutHelper.MATCH_PARENT));
}
blockingUpdateView.show(account, update, check);
drawerLayoutContainer.setAllowOpenDrawer(false, false);
}
Aggregations