diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 3dc14c510..3e3005cef 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -97,7 +97,8 @@ + android:configChanges="orientation|keyboardHidden" + android:windowSoftInputMode="adjustPan"> 0 && addButton.getVisibility() == View.VISIBLE) { - addButton.hide(onAddButtonVisibilityChangedListener); + hideButton(); } else if (dy < 0 && addButton.getVisibility() != View.VISIBLE) { - addButton.show(onAddButtonVisibilityChangedListener); + showButton(); } } }); } + public void showButton() { + addButton.show(onAddButtonVisibilityChangedListener); + } + + public void hideButton() { + addButton.hide(onAddButtonVisibilityChangedListener); + } + @Override public boolean dispatchTouchEvent(MotionEvent ev) { Rect viewRectG = new Rect();