Merge pull request #3137 from andersonvom/warning-cleanup

Cleanup compiler warnings
This commit is contained in:
H. Lehmann 2019-04-26 16:54:54 +02:00 committed by GitHub
commit aeef6361d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);
}
}