|
|
@@ -6,7 +6,6 @@ package kr.co.zumo.app.lifeplus.activity;
|
|
|
import android.app.Activity;
|
|
|
import android.arch.lifecycle.ViewModelProviders;
|
|
|
import android.content.Intent;
|
|
|
-import android.os.Build;
|
|
|
import android.os.Bundle;
|
|
|
import android.support.annotation.CallSuper;
|
|
|
import android.support.annotation.IntDef;
|
|
|
@@ -16,7 +15,6 @@ import android.util.Log;
|
|
|
import android.view.KeyCharacterMap;
|
|
|
import android.view.KeyEvent;
|
|
|
import android.view.View;
|
|
|
-import android.view.WindowManager;
|
|
|
|
|
|
import com.bumptech.glide.Glide;
|
|
|
import com.readystatesoftware.systembartint.SystemBarTintManager;
|
|
|
@@ -84,17 +82,21 @@ public abstract class ActivityBase extends AppCompatActivity {
|
|
|
Log.w("APP# ActivityBase | onCreate", "| >> " + this.getClass().getSimpleName() + " HC: " + this.hashCode());
|
|
|
if (hasLayout()) {
|
|
|
setContentView(R.layout.activity_main);
|
|
|
+
|
|
|
//resize screen in full screen
|
|
|
AndroidBug5497Workaround.assistActivity(this);
|
|
|
+
|
|
|
+ //소프트키 있을 경우 판별하여 레이아웃 조절
|
|
|
if(hasNavBar(this , ((CoordinatorLayout)findViewById(R.id.layout_container)))){
|
|
|
findViewById(R.id.layout_container).setPadding(0, 0, 0, ResourceUtil.getSoftKeyHeight());
|
|
|
}
|
|
|
findViewById(R.id.layout_app_bar).setPadding(0, ResourceUtil.getStatusBarHeight(), 0, 0);
|
|
|
|
|
|
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
|
|
|
- getWindow().setFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS,
|
|
|
- WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);
|
|
|
- }
|
|
|
+ // FIXME: soft input resize not working
|
|
|
+// if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
|
|
|
+// getWindow().setFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS,
|
|
|
+// WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);
|
|
|
+// }
|
|
|
|
|
|
//status bar tint setting
|
|
|
SystemBarTintManager tintManager = new SystemBarTintManager(this);
|