Skip to content

Commit

Permalink
hide keyboard when swipe back started. #334
Browse files Browse the repository at this point in the history
  • Loading branch information
cgspine committed Jul 3, 2018
1 parent f193843 commit 6579458
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/src/main/java/com/qmuiteam/qmui/arch/QMUIFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import android.view.animation.AnimationUtils;

import com.qmuiteam.qmui.QMUILog;
import com.qmuiteam.qmui.util.QMUIKeyboardHelper;
import com.qmuiteam.qmui.util.QMUIViewHelper;

import java.lang.reflect.Field;
Expand Down Expand Up @@ -334,6 +335,7 @@ public void onEdgeTouch(int edgeFlag) {
if (fragmentManager == null) {
return;
}
QMUIKeyboardHelper.hideKeyboard(swipeBackLayout);
int backstackCount = fragmentManager.getBackStackEntryCount();
if (backstackCount > 1) {
try {
Expand Down

0 comments on commit 6579458

Please sign in to comment.