// Path: sdk/src/main/java/io/kickflip/sdk/Kickflip.java
// public static boolean isKitKat() {
//     return Build.VERSION.SDK_INT >= 19;
// }


import android.annotation.TargetApi;
import android.app.Activity;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import static io.kickflip.sdk.Kickflip.isKitKat;
package io.kickflip.sdk.activity;



/**
 * @hide
 */
public abstract class ImmersiveActivity extends Activity {
    public static final String TAG = "ImmersiveActivity";
    private boolean mUseImmersiveMode = true;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
    }

    @Override
    protected void onResume() {
        super.onResume();
        hideSystemUi();
    }

    /**
     * If true, use Android's Immersive Mode. If false
     * use the "Lean Back" experience.
     * @see <a href="https://developer.android.com/design/patterns/fullscreen.html">Android Full Screen docs</a>
     * @param useIt
     */
    public void setUseImmersiveMode(boolean useIt) {
        mUseImmersiveMode = useIt;
    }

    private void hideSystemUi() {
// Path: sdk/src/main/java/io/kickflip/sdk/Kickflip.java
// public static boolean isKitKat() {
//     return Build.VERSION.SDK_INT >= 19;
// }


// Path: sdk/src/main/java/io/kickflip/sdk/activity/ImmersiveActivity.java
import android.annotation.TargetApi;
import android.app.Activity;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import static io.kickflip.sdk.Kickflip.isKitKat;

package io.kickflip.sdk.activity;



/**
 * @hide
 */
public abstract class ImmersiveActivity extends Activity {
    public static final String TAG = "ImmersiveActivity";
    private boolean mUseImmersiveMode = true;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
    }

    @Override
    protected void onResume() {
        super.onResume();
        hideSystemUi();
    }

    /**
     * If true, use Android's Immersive Mode. If false
     * use the "Lean Back" experience.
     * @see <a href="https://developer.android.com/design/patterns/fullscreen.html">Android Full Screen docs</a>
     * @param useIt
     */
    public void setUseImmersiveMode(boolean useIt) {
        mUseImmersiveMode = useIt;
    }

    private void hideSystemUi() {
        if (!isKitKat() || !mUseImmersiveMode) {