mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 21:03:54 +01:00
Fixed codacy issues
This commit is contained in:
parent
4da88b41ea
commit
75f3fe4ed6
1 changed files with 6 additions and 5 deletions
|
|
@ -73,12 +73,12 @@ public class NearbyInfoDialog extends OverlayDialog {
|
|||
overflowButton.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
popupMenuListener(v);
|
||||
popupMenuListener();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private void popupMenuListener(View v) {
|
||||
private void popupMenuListener() {
|
||||
PopupMenu popupMenu = new PopupMenu(getActivity(), overflowButton);
|
||||
popupMenu.inflate(R.menu.nearby_info_dialog_options);
|
||||
|
||||
|
|
@ -95,11 +95,12 @@ public class NearbyInfoDialog extends OverlayDialog {
|
|||
}
|
||||
|
||||
private boolean showMenu() {
|
||||
return sitelinks.getCommonsLink() != null ||
|
||||
sitelinks.getWikidataLink() != null;
|
||||
return sitelinks.getCommonsLink() != null
|
||||
|| sitelinks.getWikidataLink() != null;
|
||||
}
|
||||
|
||||
private PopupMenu.OnMenuItemClickListener menuListener = new PopupMenu.OnMenuItemClickListener() {
|
||||
private PopupMenu.OnMenuItemClickListener menuListener = new PopupMenu
|
||||
.OnMenuItemClickListener() {
|
||||
@Override
|
||||
public boolean onMenuItemClick(MenuItem item) {
|
||||
switch (item.getItemId()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue