Browse Source
			
			
			Merge pull request #68 from ThmmyNoLife/shoutbox_portrait_patch
			
				fix bug where changing the orientation would make EditorView's visibi
			
			
				pull/70/head
			
			
		 
		
			
				
					
						 oogee
					
					6 years ago
						oogee
					
					6 years ago
					
						
							committed by
							
								 GitHub
								GitHub
							
						 
					
				 
				
			 
		 
		
			
				
					
					No known key found for this signature in database
					
						
							GPG Key ID: 4AEE18F83AFDEB23
						
					
				
			
		
		
		
	
		
			
				 2 changed files with 
4 additions and 
3 deletions
			 
			
		 
		
			
				- 
					
					
					 
					app/src/main/java/gr/thmmy/mthmmy/activities/shoutbox/ShoutboxFragment.java
				
- 
					
					
					 
					app/src/main/res/layout/fragment_shoutbox.xml
				
				
				
					
						
							
								
									
	
		
			
				
					|  |  | @ -107,7 +107,7 @@ public class ShoutboxFragment extends Fragment { | 
			
		
	
		
			
				
					|  |  |  |                 shoutAdapter.notifyDataSetChanged(); | 
			
		
	
		
			
				
					|  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |         }); | 
			
		
	
		
			
				
					|  |  |  |         shoutboxViewModel.setOnShoutboxTaskStarted(this::onShoutboxTaskSarted); | 
			
		
	
		
			
				
					|  |  |  |         shoutboxViewModel.setOnShoutboxTaskStarted(this::onShoutboxTaskStarted); | 
			
		
	
		
			
				
					|  |  |  |         shoutboxViewModel.setOnShoutboxTaskFinished(this::onShoutboxTaskFinished); | 
			
		
	
		
			
				
					|  |  |  |         shoutboxViewModel.setOnSendShoutTaskStarted(this::onSendShoutTaskStarted); | 
			
		
	
		
			
				
					|  |  |  |         shoutboxViewModel.setOnSendShoutTaskFinished(this::onSendShoutTaskFinished); | 
			
		
	
	
		
			
				
					|  |  | @ -115,9 +115,10 @@ public class ShoutboxFragment extends Fragment { | 
			
		
	
		
			
				
					|  |  |  |         shoutboxViewModel.loadShoutbox(false); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     private void onShoutboxTaskSarted() { | 
			
		
	
		
			
				
					|  |  |  |     private void onShoutboxTaskStarted() { | 
			
		
	
		
			
				
					|  |  |  |         Timber.i("Starting shoutbox task..."); | 
			
		
	
		
			
				
					|  |  |  |         progressBar.setVisibility(View.VISIBLE); | 
			
		
	
		
			
				
					|  |  |  |         editorView.setVisibility(View.GONE); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     private void onSendShoutTaskStarted() { | 
			
		
	
	
		
			
				
					|  |  | 
 | 
			
		
	
								
							
						
					 
					
				 
			 
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
			
				
					|  |  | @ -30,7 +30,7 @@ | 
			
		
	
		
			
				
					|  |  |  |         android:layout_marginStart="8dp" | 
			
		
	
		
			
				
					|  |  |  |         android:layout_marginEnd="8dp" | 
			
		
	
		
			
				
					|  |  |  |         android:paddingTop="8dp" | 
			
		
	
		
			
				
					|  |  |  |         android:visibility="gone"/> | 
			
		
	
		
			
				
					|  |  |  |         android:visibility="visible"/> | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     <gr.thmmy.mthmmy.views.editorview.EmojiKeyboard | 
			
		
	
		
			
				
					|  |  |  |         android:id="@+id/emoji_keyboard" | 
			
		
	
	
		
			
				
					|  |  | 
 |