Search in sources :

Example 1 with BlockingUpdateView

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);
}
Also used : BlockingUpdateView(org.telegram.ui.Components.BlockingUpdateView) Paint(android.graphics.Paint) Point(android.graphics.Point)

Aggregations

Paint (android.graphics.Paint)1 Point (android.graphics.Point)1 BlockingUpdateView (org.telegram.ui.Components.BlockingUpdateView)1