Notification Improvements (#594)
* Download notifier improvements * Notification improvements Added a Notification Service. Added a Notification Activity Handler. * Removed service. Everything is now managed by single broadcast * Fixed some flags * Fixed ReaderActivity call * Code review * Added Handler. Removed dismiss onDestroy
							
								
								
									
										
											BIN
										
									
								
								app/src/main/res/drawable-hdpi/ic_av_pause_grey_24dp_img.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 331 B | 
							
								
								
									
										
											BIN
										
									
								
								app/src/main/res/drawable-hdpi/ic_av_play_arrow_grey_img.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 631 B | 
							
								
								
									
										
											BIN
										
									
								
								app/src/main/res/drawable-mdpi/ic_av_pause_grey_24dp_img.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 363 B | 
							
								
								
									
										
											BIN
										
									
								
								app/src/main/res/drawable-mdpi/ic_av_play_arrow_grey_img.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 421 B | 
							
								
								
									
										
											BIN
										
									
								
								app/src/main/res/drawable-xhdpi/ic_av_pause_grey_24dp_img.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 536 B | 
							
								
								
									
										
											BIN
										
									
								
								app/src/main/res/drawable-xhdpi/ic_av_play_arrow_grey_img.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 780 B | 
							
								
								
									
										
											BIN
										
									
								
								app/src/main/res/drawable-xxhdpi/ic_av_pause_grey_24dp_img.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 699 B | 
							
								
								
									
										
											BIN
										
									
								
								app/src/main/res/drawable-xxhdpi/ic_av_play_arrow_grey_img.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 1.3 KiB | 
							
								
								
									
										
											BIN
										
									
								
								app/src/main/res/drawable-xxxhdpi/ic_av_pause_grey_24dp_img.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 850 B | 
							
								
								
									
										
											BIN
										
									
								
								app/src/main/res/drawable-xxxhdpi/ic_av_play_arrow_grey_img.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 1.8 KiB | 
							
								
								
									
										42
									
								
								app/src/main/res/layout/activity_download_manager.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @@ -0,0 +1,42 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|     android:layout_width="match_parent" | ||||
|     android:layout_height="match_parent" | ||||
|     xmlns:tools="http://schemas.android.com/tools" | ||||
|     android:fitsSystemWindows="true"> | ||||
|  | ||||
|     <LinearLayout | ||||
|         android:layout_width="match_parent" | ||||
|         android:layout_height="match_parent" | ||||
|         android:orientation="vertical"> | ||||
|  | ||||
|         <android.support.design.widget.AppBarLayout | ||||
|             android:id="@+id/appbar" | ||||
|             android:layout_width="match_parent" | ||||
|             android:layout_height="wrap_content"> | ||||
|  | ||||
|             <include layout="@layout/toolbar"/> | ||||
|  | ||||
|         </android.support.design.widget.AppBarLayout> | ||||
|  | ||||
|         <FrameLayout | ||||
|             android:id="@+id/frame_container" | ||||
|             android:layout_width="match_parent" | ||||
|             android:layout_height="match_parent"> | ||||
|  | ||||
|             <android.support.v7.widget.RecyclerView | ||||
|                 android:layout_width="match_parent" | ||||
|                 android:layout_height="wrap_content" | ||||
|                 android:id="@+id/recycler" | ||||
|                 tools:listitem="@layout/item_download"/> | ||||
|  | ||||
|             <eu.kanade.tachiyomi.widget.EmptyView | ||||
|                 android:id="@+id/empty_view" | ||||
|                 android:layout_width="wrap_content" | ||||
|                 android:layout_height="wrap_content" | ||||
|                 android:layout_gravity="center" | ||||
|                 android:visibility="gone"/> | ||||
|         </FrameLayout> | ||||
|     </LinearLayout> | ||||
|  | ||||
| </android.support.design.widget.CoordinatorLayout> | ||||
| @@ -26,7 +26,8 @@ | ||||
|         <item | ||||
|             android:id="@+id/nav_drawer_downloads" | ||||
|             android:icon="@drawable/ic_file_download_black_24dp" | ||||
|             android:title="@string/label_download_queue" /> | ||||
|             android:title="@string/label_download_queue" | ||||
|             android:checkable="false" /> | ||||
|     </group> | ||||
|     <group android:id="@+id/group_settings" | ||||
|            android:checkableBehavior="single"> | ||||
|   | ||||
| @@ -260,6 +260,7 @@ | ||||
|     <string name="chapter_downloading">Downloading</string> | ||||
|     <string name="chapter_downloading_progress">Downloading (%1$d/%2$d)</string> | ||||
|     <string name="chapter_error">Error</string> | ||||
|     <string name="chapter_paused">Paused</string> | ||||
|     <string name="fetch_chapters_error">Error while fetching chapters</string> | ||||
|     <string name="show_title">Show title</string> | ||||
|     <string name="show_chapter_number">Show chapter number</string> | ||||
| @@ -383,5 +384,6 @@ | ||||
|     <string name="download_notifier_page_ready_error">A page is not loaded</string> | ||||
|     <string name="download_notifier_text_only_wifi">No wifi connection available</string> | ||||
|     <string name="download_notifier_no_network">No network connection available</string> | ||||
|     <string name="download_notifier_download_paused">Download paused</string> | ||||
|  | ||||
| </resources> | ||||
|   | ||||