Cleanup compiler warnings
Removes redundant casts and adds generic type to avoid compiler warnings.
This commit is contained in:
parent
3b9e34e18e
commit
fd2424edd4
|
@ -66,7 +66,7 @@ public class CoverLoader {
|
||||||
options = options.error(errorResource);
|
options = options.error(errorResource);
|
||||||
}
|
}
|
||||||
|
|
||||||
RequestBuilder builder = Glide.with(activity)
|
RequestBuilder<Drawable> builder = Glide.with(activity)
|
||||||
.load(uri)
|
.load(uri)
|
||||||
.apply(options);
|
.apply(options);
|
||||||
|
|
||||||
|
|
|
@ -334,7 +334,7 @@ public class AllEpisodesFragment extends Fragment {
|
||||||
onFragmentLoaded();
|
onFragmentLoaded();
|
||||||
}
|
}
|
||||||
|
|
||||||
emptyView = (View) root.findViewById(R.id.emptyView);
|
emptyView = root.findViewById(R.id.emptyView);
|
||||||
emptyView.setVisibility(View.GONE);
|
emptyView.setVisibility(View.GONE);
|
||||||
((TextView)emptyView.findViewById(R.id.emptyViewTitle)).setText(R.string.no_all_episodes_head_label);
|
((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);
|
((TextView)emptyView.findViewById(R.id.emptyViewMessage)).setText(R.string.no_all_episodes_label);
|
||||||
|
|
|
@ -495,7 +495,7 @@ public class QueueFragment extends Fragment {
|
||||||
);
|
);
|
||||||
itemTouchHelper.attachToRecyclerView(recyclerView);
|
itemTouchHelper.attachToRecyclerView(recyclerView);
|
||||||
//empty view
|
//empty view
|
||||||
emptyView = (View) root.findViewById(R.id.emptyView);
|
emptyView = root.findViewById(R.id.emptyView);
|
||||||
emptyView.setVisibility(View.GONE);
|
emptyView.setVisibility(View.GONE);
|
||||||
((TextView)emptyView.findViewById(R.id.emptyViewTitle)).setText(R.string.no_items_header_label);
|
((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);
|
((TextView)emptyView.findViewById(R.id.emptyViewMessage)).setText(R.string.no_items_label);
|
||||||
|
|
|
@ -842,7 +842,7 @@ public class PreferenceController implements SharedPreferences.OnSharedPreferenc
|
||||||
} else if (v > 0 && v < 24) {
|
} else if (v > 0 && v < 24) {
|
||||||
entries[x] = res.getQuantityString(R.plurals.episode_cleanup_hours_after_listening, v, v);
|
entries[x] = res.getQuantityString(R.plurals.episode_cleanup_hours_after_listening, v, v);
|
||||||
} else {
|
} 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);
|
entries[x] = res.getQuantityString(R.plurals.episode_cleanup_days_after_listening, numDays, numDays);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue