Color picker: don't show keyboard on start
Signed-off-by: xyyx <xyyx@mail.ru>
Change-Id: I782c988468f2447f0e315d504c7144b2a9193494
diff --git a/src/com/bliss/support/colorpicker/ColorPickerPreference.java b/src/com/bliss/support/colorpicker/ColorPickerPreference.java
index f8f97c8..4e38c9f 100644
--- a/src/com/bliss/support/colorpicker/ColorPickerPreference.java
+++ b/src/com/bliss/support/colorpicker/ColorPickerPreference.java
@@ -30,6 +30,7 @@
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup.LayoutParams;
+import android.view.WindowManager;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.LinearLayout;
@@ -263,6 +264,8 @@
mDialog.onRestoreInstanceState(state);
}
mDialog.show();
+ mDialog.getWindow().setSoftInputMode(
+ android.view.WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);
}