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

Commit bd8f893e authored by shawnlin's avatar shawnlin
Browse files

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

Update menu items after doc is loaded.

Change-Id: Ifc0bc35a48aa0ddb15cc1c0b2b4bbc0f3375745c
Fixes: 112714255
Test: atest DocumentsUITest
parent ead02358
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -1089,13 +1089,10 @@ 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 {