package com.bosong.commentgallery;

import android.os.Build;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.view.Window;

import com.bosong.commentgallerylib.CommentGallery;
import com.bosong.commentgallerylib.CommentGalleryContainer;

public class CommentGalleryActivity extends AppCompatActivity {
    private CommentGallery mGallery;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_big_image);

        initStatusBar();

        mGallery = (CommentGallery) findViewById(R.id.comment_gallery);
        mGallery.setData((CommentGalleryContainer) getIntent().getSerializableExtra(MainActivity.COMMENT_LIST),
                getIntent().getExtras().getInt(MainActivity.CLICK_INDEX));
    }

    private void initStatusBar() {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
            Window window = getWindow();
            window.getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY | View.SYSTEM_UI_FLAG_FULLSCREEN);
        }
    }
}

@@ -33,33 +33,8 @@
 y;%0A%0A
-import android.os.Build;%0A
 impo
@@ -55,16 +55,16 @@
 Bundle;%0A
+
 import a
@@ -107,62 +107,8 @@
 ity;
-%0Aimport android.view.View;%0Aimport android.view.Window;
 %0A%0Aim
@@ -494,34 +494,8 @@
 );%0A%0A
-        initStatusBar();%0A%0A
     
@@ -674,16 +674,16 @@
 _LIST),%0A
+
         
@@ -758,295 +758,7 @@
    %7D
-%0A%0A    private void initStatusBar() %7B%0A        if (Build.VERSION.SDK_INT %3E= Build.VERSION_CODES.KITKAT) %7B%0A            Window window = getWindow();%0A            window.getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY %7C View.SYSTEM_UI_FLAG_FULLSCREEN);%0A        %7D%0A    %7D
 %0A%7D%0A

remove full-screen settings