mirror of
https://github.com/nextcloud/notes-android.git
synced 2024-11-27 09:46:50 +03:00
parent
431983af8d
commit
fab225710e
5 changed files with 0 additions and 11 deletions
|
@ -111,7 +111,6 @@ public class NotesListViewActivity extends LockedActivity implements ItemAdapter
|
|||
|
||||
protected ItemAdapter adapter = null;
|
||||
|
||||
// CS304 Issue link: https://github.com/stefan-niedermann/nextcloud-notes/issues/603
|
||||
private Menu currentMenu;
|
||||
|
||||
protected NotesDatabase db = null;
|
||||
|
@ -609,7 +608,6 @@ public class NotesListViewActivity extends LockedActivity implements ItemAdapter
|
|||
new LoadNotesListTask(localAccount.getId(), getApplicationContext(), callback, navigationSelection, query).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
|
||||
new LoadCategoryListTask().executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
|
||||
|
||||
// CS304 Issue link: https://github.com/stefan-niedermann/nextcloud-notes/issues/603
|
||||
updateSortMethodIcon();
|
||||
}
|
||||
|
||||
|
@ -617,7 +615,6 @@ public class NotesListViewActivity extends LockedActivity implements ItemAdapter
|
|||
* Updates sorting method icon.
|
||||
*/
|
||||
private void updateSortMethodIcon() {
|
||||
// CS304 Issue link: https://github.com/stefan-niedermann/nextcloud-notes/issues/603
|
||||
if (localAccount == null || currentMenu == null) {
|
||||
return;
|
||||
}
|
||||
|
@ -637,7 +634,6 @@ public class NotesListViewActivity extends LockedActivity implements ItemAdapter
|
|||
*/
|
||||
@Override
|
||||
public boolean onOptionsItemSelected(MenuItem item) {
|
||||
// CS304 Issue link: https://github.com/stefan-niedermann/nextcloud-notes/issues/603
|
||||
final String unexpectedSortMethod = "Unexpected sort method";
|
||||
CategorySortingMethod method;
|
||||
|
||||
|
@ -665,7 +661,6 @@ public class NotesListViewActivity extends LockedActivity implements ItemAdapter
|
|||
*/
|
||||
@Override
|
||||
public boolean onPrepareOptionsMenu(Menu menu) {
|
||||
// CS304 Issue link: https://github.com/stefan-niedermann/nextcloud-notes/issues/603
|
||||
currentMenu = menu;
|
||||
updateSortMethodIcon();
|
||||
return super.onPrepareOptionsMenu(menu);
|
||||
|
@ -936,7 +931,6 @@ public class NotesListViewActivity extends LockedActivity implements ItemAdapter
|
|||
|
||||
mActionMode.finish();
|
||||
searchView.setIconified(true);
|
||||
// CS304 Issue link: https://github.com/stefan-niedermann/nextcloud-notes/issues/603
|
||||
refreshLists();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -52,7 +52,6 @@ public class LoadNotesListTask extends AsyncTask<Void, Void, List<Item>> {
|
|||
protected List<Item> doInBackground(Void... voids) {
|
||||
List<DBNote> noteList;
|
||||
NotesDatabase db = NotesDatabase.getInstance(context);
|
||||
// CS304 Issue link: https://github.com/stefan-niedermann/nextcloud-notes/issues/603
|
||||
noteList = db.searchNotes(accountId, searchQuery, category.category, category.favorite, db.getCategoryOrder(accountId, category));
|
||||
|
||||
if (category.category == null) {
|
||||
|
|
|
@ -1082,7 +1082,6 @@ public class NotesDatabase extends AbstractNotesDatabase {
|
|||
* @return The sorting method in CategorySortingMethod enum format
|
||||
*/
|
||||
public CategorySortingMethod getCategoryOrder(long accountId, Category category) {
|
||||
// CS304 Issue link: https://github.com/stefan-niedermann/nextcloud-notes/issues/603
|
||||
validateAccountId(accountId);
|
||||
|
||||
final Context ctx = getContext().getApplicationContext();
|
||||
|
@ -1126,7 +1125,6 @@ public class NotesDatabase extends AbstractNotesDatabase {
|
|||
*/
|
||||
public void modifyCategoryOrder(
|
||||
long accountId, Category category, CategorySortingMethod sortingMethod) {
|
||||
// CS304 Issue link: https://github.com/stefan-niedermann/nextcloud-notes/issues/603
|
||||
validateAccountId(accountId);
|
||||
|
||||
final Context ctx = getContext().getApplicationContext();
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:context="com.example.owncloudnotes.NotesListViewActivity">
|
||||
<!-- CS304 Issue link: https://github.com/stefan-niedermann/nextcloud-notes/issues/603 -->
|
||||
<item
|
||||
android:id="@+id/sorting_method"
|
||||
android:title="@string/action_sorting_method"
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
<string name="action_settings">Settings</string>
|
||||
<string name="action_trashbin">Deleted notes</string>
|
||||
<string name="action_search">Search</string>
|
||||
<!-- CS304 Issue link: https://github.com/stefan-niedermann/nextcloud-notes/issues/603 -->
|
||||
<string name="action_sorting_method">Sorting method</string>
|
||||
<string name="simple_cancel">Cancel</string>
|
||||
<string name="simple_edit">Edit</string>
|
||||
|
|
Loading…
Reference in a new issue