Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e42d1071 authored by Bill Lin's avatar Bill Lin
Browse files

Revert "Fixed menu item "get info" getting disabled on changing device orientation."

This reverts commit bd8f893e.

Reason for revert: There is a side effect in SearchView that could affect the focused state exit soon, user may hard to input keyword for searching. We are working in process for rolling out a better solution and TestCase.

Change-Id: Ife8864408ac0018aece1afc103c982b5e52f2100
parent bd8f893e
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1089,10 +1089,13 @@ public class DirectoryFragment extends Fragment implements SwipeRefreshLayout.On
            if (!mModel.isLoading()) {
                mActivity.notifyDirectoryLoaded(
                        mModel.doc != null ? mModel.doc.derivedUri : null);
                if (mModel.doc == null) {
                    // Invalid model, then update options menu to disable some items.
                    mActivity.invalidateOptionsMenu();
                }
            }
        }
    }

    private final class AdapterEnvironment implements DocumentsAdapter.Environment {