Merge pull request #5894 from ByteHamster/tiny-fixes

Tiny fixes
This commit is contained in:
ByteHamster 2022-05-15 21:53:47 +02:00 committed by GitHub
commit 33fb5e1f14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -234,6 +234,7 @@ public class NavListAdapter extends RecyclerView.Adapter<NavListAdapter.Holder>
// reset for re-use
holder.count.setVisibility(View.GONE);
holder.count.setOnClickListener(null);
holder.count.setClickable(false);
String tag = fragmentTags.get(position);
if (tag.equals(QueueFragment.TAG)) {

View File

@ -80,7 +80,7 @@ public class StatisticsFilterDialog {
dialogBinding.timeToSpinner.setSelection(filterDatesTo.first.length - 1);
});
dialogBinding.pastYearButton.setOnClickListener(v -> {
dialogBinding.timeFromSpinner.setSelection(Math.max(0, filterDatesFrom.first.length - 13));
dialogBinding.timeFromSpinner.setSelection(Math.max(0, filterDatesFrom.first.length - 12));
dialogBinding.timeToSpinner.setSelection(filterDatesTo.first.length - 2);
});