Merge pull request #4660 from ByteHamster/fix-clear-download-log
Fixed clear download log menu item
This commit is contained in:
commit
3326f91573
|
@ -176,7 +176,7 @@ public class DownloadLogFragment extends ListFragment {
|
||||||
public boolean onOptionsItemSelected(@NonNull MenuItem item) {
|
public boolean onOptionsItemSelected(@NonNull MenuItem item) {
|
||||||
if (!super.onOptionsItemSelected(item)) {
|
if (!super.onOptionsItemSelected(item)) {
|
||||||
switch (item.getItemId()) {
|
switch (item.getItemId()) {
|
||||||
case R.id.clear_history_item:
|
case R.id.clear_logs_item:
|
||||||
DBWriter.clearDownloadLog();
|
DBWriter.clearDownloadLog();
|
||||||
return true;
|
return true;
|
||||||
case R.id.refresh_item:
|
case R.id.refresh_item:
|
||||||
|
|
Loading…
Reference in New Issue