mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Hide menus for upload detail view
This commit is contained in:
parent
4977e0a800
commit
45f05c2713
1 changed files with 4 additions and 2 deletions
|
|
@ -108,8 +108,10 @@ public class MediaDetailPagerFragment extends SherlockFragment {
|
|||
|
||||
@Override
|
||||
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
|
||||
menu.clear(); // see http://stackoverflow.com/a/8495697/17865
|
||||
inflater.inflate(R.menu.fragment_image_detail, menu);
|
||||
if(!editable) { // Disable menu options for editable views
|
||||
menu.clear(); // see http://stackoverflow.com/a/8495697/17865
|
||||
inflater.inflate(R.menu.fragment_image_detail, menu);
|
||||
}
|
||||
}
|
||||
|
||||
public void showImage(int i) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue