From a71366353fb9e2f95ee9d48df1ed55b02e8507ee Mon Sep 17 00:00:00 2001 From: Ljj <418941372@qq.com> Date: Wed, 3 Jan 2018 11:59:58 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D.debug=EF=BC=88false?= =?UTF-8?q?=EF=BC=89=E7=9A=84=E6=83=85=E5=86=B5=E4=B8=8B=EF=BC=8C=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E6=98=BE=E7=A4=BA=E6=A0=88=E8=AF=95=E5=9B=BE=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/me/yokeyword/fragmentation/Fragmentation.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fragmentation_core/src/main/java/me/yokeyword/fragmentation/Fragmentation.java b/fragmentation_core/src/main/java/me/yokeyword/fragmentation/Fragmentation.java index 2cb387fa..695f4768 100644 --- a/fragmentation_core/src/main/java/me/yokeyword/fragmentation/Fragmentation.java +++ b/fragmentation_core/src/main/java/me/yokeyword/fragmentation/Fragmentation.java @@ -50,6 +50,8 @@ public static Fragmentation getDefault() { debug = builder.debug; if (debug) { mode = builder.mode; + } else { + mode = NONE; } handler = builder.handler; } From e631c3c6b3c3b2ef998136e0c6af59cc4e8b3c14 Mon Sep 17 00:00:00 2001 From: Ljj <418941372@qq.com> Date: Thu, 1 Feb 2018 18:42:40 +0800 Subject: [PATCH 2/2] =?UTF-8?q?1=E3=80=81=20fix```getHander.removeCallback?= =?UTF-8?q?s(myRunnable);```=20sometime=20not=20work?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sample/demo_wechat/ui/fragment/first/MsgFragment.java | 1 + .../me/yokeyword/fragmentation/SupportFragmentDelegate.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/demo/src/main/java/me/yokeyword/sample/demo_wechat/ui/fragment/first/MsgFragment.java b/demo/src/main/java/me/yokeyword/sample/demo_wechat/ui/fragment/first/MsgFragment.java index a8653cc2..de5dfba5 100644 --- a/demo/src/main/java/me/yokeyword/sample/demo_wechat/ui/fragment/first/MsgFragment.java +++ b/demo/src/main/java/me/yokeyword/sample/demo_wechat/ui/fragment/first/MsgFragment.java @@ -96,6 +96,7 @@ public void onClick(View v) { @Override public void onDestroyView() { super.onDestroyView(); + mRecy = null; _mActivity.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN); hideSoftInput(); } diff --git a/fragmentation_core/src/main/java/me/yokeyword/fragmentation/SupportFragmentDelegate.java b/fragmentation_core/src/main/java/me/yokeyword/fragmentation/SupportFragmentDelegate.java index afb5c320..14a7b064 100644 --- a/fragmentation_core/src/main/java/me/yokeyword/fragmentation/SupportFragmentDelegate.java +++ b/fragmentation_core/src/main/java/me/yokeyword/fragmentation/SupportFragmentDelegate.java @@ -194,7 +194,7 @@ public void onPause() { public void onDestroyView() { mSupport.getSupportDelegate().mFragmentClickable = true; getVisibleDelegate().onDestroyView(); - getHandler().removeCallbacks(mNotifyEnterAnimEndRunnable); + getHandler().removeCallbacksAndMessages(null); } public void onDestroy() {