fixed availability time formating
This commit is contained in:
		
							parent
							
								
									8408aed8f6
								
							
						
					
					
						commit
						b250363f49
					
				
					 1 changed files with 6 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -37,7 +37,12 @@ public class ServiceProviderAvailabilities extends AppCompatActivity {
 | 
			
		|||
                        @Override
 | 
			
		||||
                        public void onTimeSet(TimePicker view, int hourOfDay,
 | 
			
		||||
                                              int minute) {
 | 
			
		||||
                            if (minute==0){
 | 
			
		||||
                                button.setText(hourOfDay + ":00");
 | 
			
		||||
                            }
 | 
			
		||||
                            else {
 | 
			
		||||
                                button.setText(hourOfDay + ":" + minute);
 | 
			
		||||
                            }
 | 
			
		||||
 | 
			
		||||
                            //set availibility for service provider and check start time is less than finish
 | 
			
		||||
                        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue