mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-30 22:07:57 +01:00 
			
		
		
		
	Added add to library dialog when downloading from catalogue (#618)
* Now show snackbar when adding from catalogue * Code cleanup + added manga favorite event to update favorite drawable when added via snack * Update SettingsAdvancedFragment.kt Forgot to check optimize import. I think(hope) I got them all ;). * Now uses PublishRelay. Manga favorite is now handled in info presenter * Update MangaInfoFragment.kt
This commit is contained in:
		
				
					committed by
					
						 inorichi
						inorichi
					
				
			
			
				
	
			
			
			
						parent
						
							07cae4d684
						
					
				
				
					commit
					72f8c4d5e2
				
			| @@ -2,21 +2,23 @@ | ||||
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|               android:layout_width="match_parent" | ||||
|               android:layout_height="wrap_content" | ||||
|               android:orientation="vertical" | ||||
|               android:padding="@dimen/activity_vertical_margin"> | ||||
|               android:orientation="vertical"> | ||||
| 
 | ||||
|     <TextView | ||||
|         android:id="@+id/description" | ||||
|         android:layout_width="wrap_content" | ||||
|         android:layout_height="wrap_content" | ||||
|         android:text="@string/dialog_remove_recently_description" | ||||
|         android:textAppearance="@style/TextAppearance.Regular.Body1"/> | ||||
| 
 | ||||
| 
 | ||||
|     <CheckBox | ||||
|         android:id="@+id/removeAll" | ||||
|         android:id="@+id/checkbox_option" | ||||
|         android:layout_width="match_parent" | ||||
|         android:layout_height="wrap_content" | ||||
|         android:layout_marginTop="18dp" | ||||
|         android:text="@string/dialog_remove_recently_reset"/> | ||||
|         android:layout_marginStart="-5dp" | ||||
|         android:layout_marginEnd="0dp" | ||||
|         android:layout_marginLeft="-5dp" | ||||
|         android:layout_marginRight="0dp" | ||||
|         android:layout_marginTop="@dimen/material_component_dialogs_padding_between_text_and_touch_target"/> | ||||
| 
 | ||||
| </LinearLayout> | ||||
| @@ -237,8 +237,8 @@ | ||||
|     <string name="chapters">Capítulos</string> | ||||
|  | ||||
|     <!-- Dialog remove recently view --> | ||||
|     <string name="dialog_remove_recently_description">Esto eliminará la fecha de lectura de este capítulo. ¿Estás seguro?</string> | ||||
|     <string name="dialog_remove_recently_reset">Reiniciar todas los capítulos de este manga</string> | ||||
|     <string name="dialog_with_checkbox_remove_description">Esto eliminará la fecha de lectura de este capítulo. ¿Estás seguro?</string> | ||||
|     <string name="dialog_with_checkbox_reset">Reiniciar todas los capítulos de este manga</string> | ||||
|  | ||||
|  | ||||
|     <!-- Reader activity --> | ||||
|   | ||||
| @@ -285,8 +285,8 @@ | ||||
|     <string name="error_category_exists">Esiste già una categoria con questo nome</string> | ||||
|  | ||||
|     <!-- Dialog remove recently view --> | ||||
|     <string name="dialog_remove_recently_description">Questo rimuoverà la data lettura di questo capitolo. Sei sicuro?</string> | ||||
|     <string name="dialog_remove_recently_reset">Rimuovi per tutti i capitoli di questo manga</string> | ||||
|     <string name="dialog_with_checkbox_remove_description">Questo rimuoverà la data lettura di questo capitolo. Sei sicuro?</string> | ||||
|     <string name="dialog_with_checkbox_reset">Rimuovi per tutti i capitoli di questo manga</string> | ||||
|  | ||||
|     <!-- Image notifier --> | ||||
|     <string name="picture_saved">Immagine salvata</string> | ||||
|   | ||||
| @@ -245,8 +245,8 @@ | ||||
|     <string name="chapters">Capítulos</string> | ||||
|  | ||||
|     <!-- Dialog remove recently view --> | ||||
|     <string name="dialog_remove_recently_description">Esta ação irá remover a data de leitura deste capítulo. Continuar?</string> | ||||
|     <string name="dialog_remove_recently_reset">Repor todos os capítulos desta manga</string> | ||||
|     <string name="dialog_with_checkbox_remove_description">Esta ação irá remover a data de leitura deste capítulo. Continuar?</string> | ||||
|     <string name="dialog_with_checkbox_reset">Repor todos os capítulos desta manga</string> | ||||
|  | ||||
|     <!-- Reader activity --> | ||||
|     <string name="downloading">A transferir…</string> | ||||
|   | ||||
| @@ -38,6 +38,7 @@ | ||||
|     <string name="action_update">Update</string> | ||||
|     <string name="action_update_library">Update library</string> | ||||
|     <string name="action_edit">Edit</string> | ||||
|     <string name="action_add">Add</string> | ||||
|     <string name="action_add_category">Add category</string> | ||||
|     <string name="action_edit_categories">Edit categories</string> | ||||
|     <string name="action_rename_category">Rename category</string> | ||||
| @@ -184,6 +185,7 @@ | ||||
|     <string name="cache_delete_error">An error occurred while clearing cache</string> | ||||
|     <string name="pref_clear_cookies">Clear cookies</string> | ||||
|     <string name="cookies_cleared">Cookies cleared</string> | ||||
|     <string name="choices_reset">Dialog choices reset</string> | ||||
|     <string name="pref_clear_database">Clear database</string> | ||||
|     <string name="pref_clear_database_summary">Delete manga and chapters that are not in your library</string> | ||||
|     <string name="clear_database_confirmation">Are you sure? Read chapters and progress of non-library manga will be lost</string> | ||||
| @@ -285,9 +287,12 @@ | ||||
|     <!-- Category activity --> | ||||
|     <string name="error_category_exists">A category with this name already exists!</string> | ||||
|  | ||||
|     <!-- Dialog remove recently view --> | ||||
|     <string name="dialog_remove_recently_description">This will remove the read date of this chapter. Are you sure?</string> | ||||
|     <string name="dialog_remove_recently_reset">Reset all chapters for this manga</string> | ||||
|     <!-- Dialog option with checkbox view --> | ||||
|     <string name="dialog_with_checkbox_remove_description">This will remove the read date of this chapter. Are you sure?</string> | ||||
|     <string name="dialog_with_checkbox_reset">Reset all chapters for this manga</string> | ||||
|  | ||||
|     <!-- SnackBar --> | ||||
|     <string name="snack_add_to_library">Add manga to library?</string> | ||||
|  | ||||
|     <!-- Image notifier --> | ||||
|     <string name="picture_saved">Picture saved</string> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user