forked from recloudstream/cloudstream
		
	resume progress for movies fix
This commit is contained in:
		
							parent
							
								
									14da44f1f4
								
							
						
					
					
						commit
						7ee501996e
					
				
					 3 changed files with 28 additions and 0 deletions
				
			
		|  | @ -1509,6 +1509,13 @@ class ResultFragment : Fragment(), PanelsChildGestureRegionObserver.GestureRegio | |||
|                                     } | ||||
|                                 } | ||||
| 
 | ||||
|                                 result_download_movie?.setOnLongClickListener { | ||||
|                                     val card = | ||||
|                                         currentEpisodes?.firstOrNull() ?: return@setOnLongClickListener false | ||||
|                                     handleAction(EpisodeClickEvent(ACTION_DOWNLOAD_MIRROR, card)) | ||||
|                                     return@setOnLongClickListener true | ||||
|                                 } | ||||
| 
 | ||||
|                                 /*downloadButton?.setUpMaterialButton( | ||||
|                                     file?.fileLength, | ||||
|                                     file?.totalBytes, | ||||
|  |  | |||
							
								
								
									
										19
									
								
								app/src/main/res/drawable/circular_progress_bar_filled.xml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								app/src/main/res/drawable/circular_progress_bar_filled.xml
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,19 @@ | |||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <rotate xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|         android:fromDegrees="270" | ||||
|         android:toDegrees="270"> | ||||
|     <shape android:shape="oval" /> | ||||
|     <shape | ||||
|             android:innerRadiusRatio="100" | ||||
|             android:shape="ring" | ||||
|             android:thickness="11dp" | ||||
|             android:useLevel="true"><!-- this line fixes the issue for lollipop api 21 --> | ||||
| 
 | ||||
|         <gradient | ||||
|                 android:angle="0" | ||||
|                 android:endColor="?attr/white" | ||||
|                 android:startColor="?attr/white" | ||||
|                 android:type="sweep" | ||||
|                 android:useLevel="false" /> | ||||
|     </shape> | ||||
| </rotate> | ||||
|  | @ -670,6 +670,8 @@ | |||
|                     </LinearLayout> | ||||
| 
 | ||||
|                     <LinearLayout | ||||
|                             tools:visibility="visible" | ||||
|                             android:visibility="gone" | ||||
|                             android:paddingTop="10dp" | ||||
|                             android:id="@+id/result_resume_progress_holder" | ||||
|                             android:orientation="horizontal" | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue