mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-27 23:20:58 -04:00
Merge pull request #1942 from yash1ts/#1907-bug-in-bookmark-history-list
Fixed bug in bookmark and history list.
This commit is contained in:
commit
50868133fe
@ -85,6 +85,7 @@ public class BookmarksActivity extends BaseActivity implements BookmarksContract
|
||||
@Override
|
||||
public boolean onCreateActionMode(ActionMode mode, Menu menu) {
|
||||
mode.getMenuInflater().inflate(R.menu.menu_context_delete, menu);
|
||||
bookmarksSwitch.setEnabled(false);
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -123,6 +124,7 @@ public class BookmarksActivity extends BaseActivity implements BookmarksContract
|
||||
if (refreshAdapter) {
|
||||
bookmarksAdapter.notifyDataSetChanged();
|
||||
}
|
||||
bookmarksSwitch.setEnabled(true);
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -88,6 +88,7 @@ public class HistoryActivity extends BaseActivity implements HistoryContract.Vie
|
||||
@Override
|
||||
public boolean onCreateActionMode(ActionMode mode, Menu menu) {
|
||||
mode.getMenuInflater().inflate(R.menu.menu_context_delete, menu);
|
||||
historySwitch.setEnabled(false);
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -137,6 +138,7 @@ public class HistoryActivity extends BaseActivity implements HistoryContract.Vie
|
||||
if (refreshAdapter) {
|
||||
historyAdapter.notifyDataSetChanged();
|
||||
}
|
||||
historySwitch.setEnabled(true);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user