Fix default textColor for TextView
TextView respects textViewStyle since appcompat-v7:22.2:
     public AppCompatTextView(Context context, AttributeSet attrs) {
-        this(context, attrs, 0);
+        this(context, attrs, android.R.attr.textViewStyle);
     }
This change in appcompat-v7 breaks previous behaviour by applying
textColorSecondary to TextViews: text becomes grey after upgrading
appcompat-v7 to 22.2.
See https://code.google.com/p/android/issues/detail?id=170476
			
			
This commit is contained in:
		
							parent
							
								
									8bf0b1df91
								
							
						
					
					
						commit
						68de2356c5
					
				| @ -9,6 +9,7 @@ | ||||
|         <item name="colorAccent">@color/fdroid_green</item> | ||||
|         <item name="android:textColorLink">@color/fdroid_green</item> | ||||
|         <item name="alertDialogTheme">@style/AlertDialogThemeDark</item> | ||||
|         <item name="android:textViewStyle">@style/TextViewStyle</item> | ||||
|     </style> | ||||
| 
 | ||||
|     <style name="AppBaseThemeLight" parent="Theme.AppCompat.Light.DarkActionBar"> | ||||
| @ -19,6 +20,7 @@ | ||||
|         <item name="colorAccent">@color/fdroid_green</item> | ||||
|         <item name="android:textColorLink">@color/fdroid_green</item> | ||||
|         <item name="alertDialogTheme">@style/AlertDialogThemeLight</item> | ||||
|         <item name="android:textViewStyle">@style/TextViewStyle</item> | ||||
|     </style> | ||||
| 
 | ||||
|     <style name="AppThemeDark" parent="AppBaseThemeDark"> | ||||
| @ -46,6 +48,10 @@ | ||||
|         <item name="colorAccent">@color/fdroid_green</item> | ||||
|     </style> | ||||
| 
 | ||||
|     <style name="TextViewStyle" parent="android:Widget.TextView"> | ||||
|         <item name="android:textColor">?android:attr/textColorPrimary</item> | ||||
|     </style> | ||||
| 
 | ||||
|     <style name="RepoDetailsCaption"> | ||||
|         <item name="android:paddingTop">16dp</item> | ||||
|         <item name="android:paddingBottom">4dp</item> | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 relan
						relan