/*
 *  Copyright (c) 2016 Touch Instinct
 *
 *  This file is part of RoboSwag library.
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 *
 */

package ru.touchin.templates;

import ru.touchin.roboswag.components.navigation.activities.ViewControllerActivity;
import ru.touchin.roboswag.components.utils.Logic;

/**
 * Created by Gavriil Sitnikov on 11/03/16.
 * TODO: description
 */
public abstract class TouchinActivity<TLogic extends Logic> extends ViewControllerActivity<TLogic> {

    protected TouchinActivity() {
        super();
    }

}

@@ -682,16 +682,179 @@
 lates;%0A%0A
+import android.os.Build;%0Aimport android.os.Bundle;%0Aimport android.support.annotation.IdRes;%0Aimport android.support.annotation.Nullable;%0Aimport android.view.View;%0A%0A
 import r
@@ -979,16 +979,69 @@
 s.Logic;
+%0Aimport ru.touchin.roboswag.components.utils.UiUtils;
 %0A%0A/**%0A *
@@ -1267,10 +1267,1781 @@
 %0A    %7D%0A%0A
+    @Override%0A    protected void onPostCreate(@Nullable final Bundle savedInstanceState) %7B%0A        super.onPostCreate(savedInstanceState);%0A        makeActivityFullScreen();%0A    %7D%0A%0A    private void makeActivityFullScreen() %7B%0A        if (Build.VERSION.SDK_INT %3E= Build.VERSION_CODES.LOLLIPOP && (isActivityUnderNavigationBar() %7C%7C isActivityUnderStatusBar())) %7B%0A            final View activityView = findViewById(getContainerId());%0A            int topPadding = activityView.getPaddingTop();%0A            int bottomPadding = activityView.getPaddingBottom();%0A            if (isActivityUnderStatusBar()) %7B%0A                topPadding += UiUtils.getStatusBarHeight(this);%0A            %7D%0A            if (UiUtils.hasSoftKeys(this)) %7B%0A                getWindow().getDecorView()%0A                        .setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE%0A                                %7C View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN%0A                                %7C View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION);%0A                if (isActivityUnderNavigationBar()) %7B%0A                    bottomPadding += UiUtils.getNavigationBarHeight(this);%0A                %7D%0A            %7D else %7B%0A                getWindow().getDecorView()%0A                        .setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE %7C View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);%0A            %7D%0A            activityView.setPadding(activityView.getPaddingLeft(),%0A                    topPadding,%0A                    activityView.getPaddingRight(),%0A                    bottomPadding);%0A%0A        %7D%0A    %7D%0A%0A    protected boolean isActivityUnderStatusBar() %7B%0A        return false;%0A    %7D%0A%0A    protected boolean isActivityUnderNavigationBar() %7B%0A        return false;%0A    %7D%0A%0A    @IdRes%0A    protected abstract int getContainerId();%0A%0A
 %7D%0A

add the possibility to make activity full screen