From 08e3f9d2bcfc6cc1780eea66894b4ee226fca978 Mon Sep 17 00:00:00 2001 From: Alex Sytnyk Date: Wed, 6 Jun 2018 22:02:57 +0300 Subject: [PATCH] Add missing annotations --- .../net/osmand/plus/myplaces/TrackActivityFragmentAdapter.java | 2 ++ OsmAnd/src/net/osmand/plus/myplaces/TrackPointFragment.java | 1 + .../wikivoyage/article/WikivoyageArticleDialogFragment.java | 2 ++ .../plus/wikivoyage/search/WikivoyageSearchDialogFragment.java | 1 + 4 files changed, 6 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/myplaces/TrackActivityFragmentAdapter.java b/OsmAnd/src/net/osmand/plus/myplaces/TrackActivityFragmentAdapter.java index 97e7f44bbe..9c9c7af6de 100644 --- a/OsmAnd/src/net/osmand/plus/myplaces/TrackActivityFragmentAdapter.java +++ b/OsmAnd/src/net/osmand/plus/myplaces/TrackActivityFragmentAdapter.java @@ -801,6 +801,7 @@ public class TrackActivityFragmentAdapter implements TrackBitmapDrawerListener { timeSplit = fragmentAdapter.timeSplit; } + @Override protected void onPreExecute() { TrackActivity activity = activityRef.get(); if (activity != null) { @@ -808,6 +809,7 @@ public class TrackActivityFragmentAdapter implements TrackBitmapDrawerListener { } } + @Override protected void onPostExecute(Void result) { TrackActivity activity = activityRef.get(); TrackActivityFragmentAdapter fragment = fragmentAdapterRef.get(); diff --git a/OsmAnd/src/net/osmand/plus/myplaces/TrackPointFragment.java b/OsmAnd/src/net/osmand/plus/myplaces/TrackPointFragment.java index a40b433830..4789be0359 100644 --- a/OsmAnd/src/net/osmand/plus/myplaces/TrackPointFragment.java +++ b/OsmAnd/src/net/osmand/plus/myplaces/TrackPointFragment.java @@ -341,6 +341,7 @@ public class TrackPointFragment extends OsmandExpandableListFragment implements } // Needed to hide intermediate progress bar after closing action mode new Handler().postDelayed(new Runnable() { + @Override public void run() { hideProgressBar(); } diff --git a/OsmAnd/src/net/osmand/plus/wikivoyage/article/WikivoyageArticleDialogFragment.java b/OsmAnd/src/net/osmand/plus/wikivoyage/article/WikivoyageArticleDialogFragment.java index 6f69d2c332..7a3a76bede 100644 --- a/OsmAnd/src/net/osmand/plus/wikivoyage/article/WikivoyageArticleDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/wikivoyage/article/WikivoyageArticleDialogFragment.java @@ -281,6 +281,7 @@ public class WikivoyageArticleDialogFragment extends WikiArticleBaseDialogFragme popup.show(); } + @Override protected void populateArticle() { if (tripId == NO_VALUE || langs == null) { Bundle args = getArguments(); @@ -318,6 +319,7 @@ public class WikivoyageArticleDialogFragment extends WikiArticleBaseDialogFragme } @NonNull + @Override protected String createHtmlContent() { StringBuilder sb = new StringBuilder(HEADER_INNER); String bodyTag = rtlLanguages.contains(article.getLang()) ? "\n" : "\n"; diff --git a/OsmAnd/src/net/osmand/plus/wikivoyage/search/WikivoyageSearchDialogFragment.java b/OsmAnd/src/net/osmand/plus/wikivoyage/search/WikivoyageSearchDialogFragment.java index 3f55994039..d6aba04e03 100644 --- a/OsmAnd/src/net/osmand/plus/wikivoyage/search/WikivoyageSearchDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/wikivoyage/search/WikivoyageSearchDialogFragment.java @@ -164,6 +164,7 @@ public class WikivoyageSearchDialogFragment extends WikiBaseDialogFragment { @Override public boolean publish(final List results) { getMyApplication().runInUIThread(new Runnable() { + @Override public void run() { if (!isCancelled()) { setAdapterItems(results);