refactored some code

This commit is contained in:
Chumva 2018-03-02 17:31:46 +02:00
parent 89a7fc3b21
commit b2254b6ce4

View file

@ -290,7 +290,7 @@ public class AmenityMenuBuilder extends MenuBuilder {
ll.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (textPrefix.equals(app.getResources().getString(R.string.shared_string_wikipedia))) {
if (textPrefix.equals("Wikipedia")) {
WikipediaDialogFragment.showFullArticle(v.getContext(), Uri.parse(text), !light);
} else {
Intent intent = new Intent(Intent.ACTION_VIEW);