mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-30 22:07:57 +01:00 
			
		
		
		
	Added option to sort library (#536)
* Initial code * Added all sort options * Fixes * Removed sort by added. Some renaming * Removed date added database calls * Fixes
This commit is contained in:
		
				
					committed by
					
						 inorichi
						inorichi
					
				
			
			
				
	
			
			
			
						parent
						
							d971768056
						
					
				
				
					commit
					aba528b227
				
			
							
								
								
									
										9
									
								
								app/src/main/res/drawable/ic_sort_white_24dp.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								app/src/main/res/drawable/ic_sort_white_24dp.xml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| <vector xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|         android:width="24dp" | ||||
|         android:height="24dp" | ||||
|         android:viewportWidth="24.0" | ||||
|         android:viewportHeight="24.0"> | ||||
|     <path | ||||
|         android:fillColor="#FFFFFFFF" | ||||
|         android:pathData="M3,18h6v-2L3,16v2zM3,6v2h18L21,6L3,6zM3,13h12v-2L3,11v2z"/> | ||||
| </vector> | ||||
| @@ -1,6 +1,7 @@ | ||||
| <menu xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|     xmlns:app="http://schemas.android.com/apk/res-auto" | ||||
|     xmlns:tools="http://schemas.android.com/tools" tools:context=".MainActivity"> | ||||
|       xmlns:app="http://schemas.android.com/apk/res-auto" | ||||
|       xmlns:tools="http://schemas.android.com/tools" | ||||
|       tools:context=".MainActivity"> | ||||
|  | ||||
|     <item | ||||
|         android:id="@+id/action_search" | ||||
| @@ -29,11 +30,34 @@ | ||||
|         </menu> | ||||
|     </item> | ||||
|  | ||||
|     <item | ||||
|         android:id="@+id/action_sort" | ||||
|         android:icon="@drawable/ic_sort_white_24dp" | ||||
|         android:title="@string/action_sort" | ||||
|         app:showAsAction="never" | ||||
|         > | ||||
|         <menu> | ||||
|             <group | ||||
|                 android:id="@+id/sort_group" | ||||
|                 android:checkableBehavior="single"> | ||||
|                 <item | ||||
|                     android:id="@+id/action_sort_alpha" | ||||
|                     android:title="@string/action_sort_alpha"/> | ||||
|                 <item | ||||
|                     android:id="@+id/action_sort_last_read" | ||||
|                     android:title="@string/action_sort_last_read"/> | ||||
|                 <item | ||||
|                     android:id="@+id/action_sort_last_updated" | ||||
|                     android:title="@string/action_sort_last_updated"/> | ||||
|             </group> | ||||
|         </menu> | ||||
|     </item> | ||||
|  | ||||
|     <item | ||||
|         android:id="@+id/action_update_library" | ||||
|         android:icon="@drawable/ic_refresh_white_24dp" | ||||
|         android:title="@string/action_update_library" | ||||
|         app:showAsAction="ifRoom" /> | ||||
|         app:showAsAction="ifRoom"/> | ||||
|  | ||||
|     <item | ||||
|         android:id="@+id/action_library_display_mode" | ||||
| @@ -43,6 +67,6 @@ | ||||
|     <item | ||||
|         android:id="@+id/action_edit_categories" | ||||
|         android:title="@string/action_edit_categories" | ||||
|         app:showAsAction="never" /> | ||||
|         app:showAsAction="never"/> | ||||
|  | ||||
| </menu> | ||||
|   | ||||
| @@ -28,4 +28,12 @@ | ||||
|         </changelogtext> | ||||
|     </changelogversion> | ||||
|  | ||||
|     <changelogversion | ||||
|             changeDate="" | ||||
|             versionName="r359"> | ||||
|         <changelogtext>Library sort for "last updated" will only work with manga updated after this | ||||
|             version. | ||||
|         </changelogtext> | ||||
|     </changelogversion> | ||||
|  | ||||
| </changelog> | ||||
| @@ -41,6 +41,7 @@ | ||||
|     <string name="pref_read_with_tapping_key">reader_tap</string> | ||||
|     <string name="pref_filter_downloaded_key">pref_filter_downloaded_key</string> | ||||
|     <string name="pref_filter_unread_key">pref_filter_unread_key</string> | ||||
|     <string name="pref_library_sorting_mode_key">library_sorting_mode</string> | ||||
|  | ||||
|     <string name="pref_download_directory_key">download_directory</string> | ||||
|     <string name="pref_download_slots_key">pref_download_slots_key</string> | ||||
|   | ||||
| @@ -23,6 +23,9 @@ | ||||
|     <string name="action_filter_unread">Unread</string> | ||||
|     <string name="action_filter_read">Read</string> | ||||
|     <string name="action_filter_empty">Remove filter</string> | ||||
|     <string name="action_sort_alpha">Alphabetically</string> | ||||
|     <string name="action_sort_last_read">Last read</string> | ||||
|     <string name="action_sort_last_updated">Last updated</string> | ||||
|     <string name="action_search">Search</string> | ||||
|     <string name="action_select_all">Select all</string> | ||||
|     <string name="action_mark_as_read">Mark as read</string> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user