Disable the resetStatistics item when in countAll mode

This commit is contained in:
Xavier Gouchet 2019-10-08 19:50:22 +02:00
parent 4289933155
commit 49660946f8
1 changed files with 1 additions and 0 deletions

View File

@ -86,6 +86,7 @@ public class StatisticsFragment extends Fragment {
@Override
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
inflater.inflate(R.menu.statistics, menu);
menu.findItem(R.id.statistics_reset).setEnabled(!countAll);
}
@Override