diff options
author | Anderson Mesquita <andersonvom@gmail.com> | 2019-04-25 12:06:09 -0400 |
---|---|---|
committer | Anderson Mesquita <andersonvom@gmail.com> | 2019-04-25 18:45:36 -0400 |
commit | fd2424edd4c001755fde8c405748d93a8b37cd03 (patch) | |
tree | dca32b7cf9ae51b44d16583e1699b007e39c12a4 /app | |
parent | 3b9e34e18eebf8e3712628e7ff1a0e68d10690b5 (diff) | |
download | AntennaPod-fd2424edd4c001755fde8c405748d93a8b37cd03.zip |
Cleanup compiler warnings
Removes redundant casts and adds generic type to avoid compiler warnings.
Diffstat (limited to 'app')
4 files changed, 4 insertions, 4 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/adapter/CoverLoader.java b/app/src/main/java/de/danoeh/antennapod/adapter/CoverLoader.java index 54ecdae77..79dc1f96e 100644 --- a/app/src/main/java/de/danoeh/antennapod/adapter/CoverLoader.java +++ b/app/src/main/java/de/danoeh/antennapod/adapter/CoverLoader.java @@ -66,7 +66,7 @@ public class CoverLoader { options = options.error(errorResource); } - RequestBuilder builder = Glide.with(activity) + RequestBuilder<Drawable> builder = Glide.with(activity) .load(uri) .apply(options); diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/AllEpisodesFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/AllEpisodesFragment.java index d7d49705d..ec06f081a 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/AllEpisodesFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/AllEpisodesFragment.java @@ -334,7 +334,7 @@ public class AllEpisodesFragment extends Fragment { onFragmentLoaded(); } - emptyView = (View) root.findViewById(R.id.emptyView); + emptyView = root.findViewById(R.id.emptyView); emptyView.setVisibility(View.GONE); ((TextView)emptyView.findViewById(R.id.emptyViewTitle)).setText(R.string.no_all_episodes_head_label); ((TextView)emptyView.findViewById(R.id.emptyViewMessage)).setText(R.string.no_all_episodes_label); diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/QueueFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/QueueFragment.java index faec50135..1debab6a3 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/QueueFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/QueueFragment.java @@ -495,7 +495,7 @@ public class QueueFragment extends Fragment { ); itemTouchHelper.attachToRecyclerView(recyclerView); //empty view - emptyView = (View) root.findViewById(R.id.emptyView); + emptyView = root.findViewById(R.id.emptyView); emptyView.setVisibility(View.GONE); ((TextView)emptyView.findViewById(R.id.emptyViewTitle)).setText(R.string.no_items_header_label); ((TextView)emptyView.findViewById(R.id.emptyViewMessage)).setText(R.string.no_items_label); diff --git a/app/src/main/java/de/danoeh/antennapod/preferences/PreferenceController.java b/app/src/main/java/de/danoeh/antennapod/preferences/PreferenceController.java index a157a2cfa..042aa594a 100644 --- a/app/src/main/java/de/danoeh/antennapod/preferences/PreferenceController.java +++ b/app/src/main/java/de/danoeh/antennapod/preferences/PreferenceController.java @@ -842,7 +842,7 @@ public class PreferenceController implements SharedPreferences.OnSharedPreferenc } else if (v > 0 && v < 24) { entries[x] = res.getQuantityString(R.plurals.episode_cleanup_hours_after_listening, v, v); } else { - int numDays = (int)(v / 24); // assume underlying value will be NOT fraction of days, e.g., 36 (hours) + int numDays = v / 24; // assume underlying value will be NOT fraction of days, e.g., 36 (hours) entries[x] = res.getQuantityString(R.plurals.episode_cleanup_days_after_listening, numDays, numDays); } } |