mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-31 14:53:59 +01:00 
			
		
		
		
	
							parent
							
								
									900bd4ff2f
								
							
						
					
					
						commit
						6cbce9d283
					
				
					 8 changed files with 15 additions and 45 deletions
				
			
		|  | @ -127,9 +127,7 @@ public class SpinnerLanguagesAdapter extends ArrayAdapter { | |||
|                 if (languageCodesList.get(position).isEmpty()) { | ||||
|                     tvLanguage.setText(languageNamesList.get(position)); | ||||
|                     tvLanguage.setTextColor(Color.GRAY); | ||||
|                     if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) { | ||||
|                         tvLanguage.setTextAlignment(View.TEXT_ALIGNMENT_CENTER); | ||||
|                     } | ||||
|                     tvLanguage.setTextAlignment(View.TEXT_ALIGNMENT_CENTER); | ||||
|                 } else { | ||||
|                     tvLanguage.setText( | ||||
|                             String.format("%s [%s]", languageNamesList.get(position), languageCodesList.get(position))); | ||||
|  |  | |||
|  | @ -567,9 +567,7 @@ public class UploadActivity extends BaseActivity implements UploadView, SimilarI | |||
|     } | ||||
| 
 | ||||
|     private void configureCategories() { | ||||
|         if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) { | ||||
|             categoryFrameLayout.setLayoutDirection(View.LAYOUT_DIRECTION_LTR); | ||||
|         } | ||||
|         categoryFrameLayout.setLayoutDirection(View.LAYOUT_DIRECTION_LTR); | ||||
|         categoriesAdapter = new UploadCategoriesAdapterFactory(categoriesModel).create(new ArrayList<>()); | ||||
|         categoriesList.setLayoutManager(new LinearLayoutManager(this)); | ||||
|         categoriesList.setAdapter(categoriesAdapter); | ||||
|  |  | |||
|  | @ -33,7 +33,7 @@ public class UploadCategoriesRenderer extends Renderer<CategoryItem> { | |||
|     protected void setUpView(View view) { | ||||
|         ButterKnife.bind(this, view); | ||||
|         Configuration config = getContext().getResources().getConfiguration(); | ||||
|         if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1 && config.getLayoutDirection() == View.LAYOUT_DIRECTION_RTL) { | ||||
|         if (config.getLayoutDirection() == View.LAYOUT_DIRECTION_RTL) { | ||||
|             checkedView.setLayoutDirection(View.LAYOUT_DIRECTION_LTR); | ||||
|         } | ||||
|     } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Vivek Maskara
						Vivek Maskara