From 1d1cfeec54de3dfdbbd62fb3327d0963036e77df Mon Sep 17 00:00:00 2001 From: seven332 Date: Sun, 21 Dec 2014 15:26:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=AF=E8=83=BD=E4=BF=AE=E6=AD=A3=20No=20con?= =?UTF-8?q?figs=20match=20configSpec?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- res/layout/gallery_list.xml | 4 +--- res/values/ids.xml | 1 + src/com/hippo/ehviewer/gallery/ui/GLRootView.java | 5 ++++- src/com/hippo/ehviewer/widget/RefreshLayout.java | 1 + 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/res/layout/gallery_list.xml b/res/layout/gallery_list.xml index e29d58cd1..996300818 100644 --- a/res/layout/gallery_list.xml +++ b/res/layout/gallery_list.xml @@ -31,11 +31,9 @@ android:layout_height="match_parent" /> + android:layout_height="match_parent" /> diff --git a/res/values/ids.xml b/res/values/ids.xml index 097d0a3a8..7ae777e84 100644 --- a/res/values/ids.xml +++ b/res/values/ids.xml @@ -21,5 +21,6 @@ + \ No newline at end of file diff --git a/src/com/hippo/ehviewer/gallery/ui/GLRootView.java b/src/com/hippo/ehviewer/gallery/ui/GLRootView.java index f96fbcc7c..518addc5b 100644 --- a/src/com/hippo/ehviewer/gallery/ui/GLRootView.java +++ b/src/com/hippo/ehviewer/gallery/ui/GLRootView.java @@ -115,7 +115,10 @@ public class GLRootView extends GLSurfaceView setBackgroundDrawable(null); setEGLContextClientVersion(ApiHelper.HAS_GLES20_REQUIRED ? 2 : 1); if (ApiHelper.USE_888_PIXEL_FORMAT) { - setEGLConfigChooser(8, 8, 8, 0, 0, 0); + // From setEGLConfigChooser(8, 8, 8, 0, 0, 0) to setEGLConfigChooser(8, 8, 8, 8, 0, 0) + // Fix "No configs match configSpec" for some deivces, + // may introduced same error for the other devices ? + setEGLConfigChooser(8, 8, 8, 8, 0, 0); } else { setEGLConfigChooser(5, 6, 5, 0, 0, 0); } diff --git a/src/com/hippo/ehviewer/widget/RefreshLayout.java b/src/com/hippo/ehviewer/widget/RefreshLayout.java index adf8e88f7..00f92dc2e 100644 --- a/src/com/hippo/ehviewer/widget/RefreshLayout.java +++ b/src/com/hippo/ehviewer/widget/RefreshLayout.java @@ -63,6 +63,7 @@ public class RefreshLayout extends SwipeRefreshLayout { mEasyRecyclerView = new EasyRecyclerView(context); else mEasyRecyclerView = new EasyRecyclerView(context, attrs); + mEasyRecyclerView.setId(R.id.easy_recycler_view); addView(mEasyRecyclerView); // Footer view