mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +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
|
@Override
|
||||||
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
|
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
|
||||||
menu.clear(); // see http://stackoverflow.com/a/8495697/17865
|
if(!editable) { // Disable menu options for editable views
|
||||||
inflater.inflate(R.menu.fragment_image_detail, menu);
|
menu.clear(); // see http://stackoverflow.com/a/8495697/17865
|
||||||
|
inflater.inflate(R.menu.fragment_image_detail, menu);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void showImage(int i) {
|
public void showImage(int i) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue