mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 19:26:42 +08:00
Use setColorFilter on post-21 ActionBars only
This commit is contained in:
@ -8,6 +8,6 @@
|
||||
</ActionBar>
|
||||
</Page.actionBar>
|
||||
<StackLayout>
|
||||
<Button text="go to cleared page" tap="navigate"/>
|
||||
<Button text="go to cleared page" tap="navigate" style="background-color: green;"/>
|
||||
</StackLayout>
|
||||
</Page>
|
@ -39,7 +39,9 @@ export module ad {
|
||||
function isSetColorFilterOnlyWidget(nativeView: android.view.View): boolean {
|
||||
return (
|
||||
nativeView instanceof android.widget.Button ||
|
||||
nativeView instanceof android.support.v7.widget.Toolbar
|
||||
(nativeView instanceof android.support.v7.widget.Toolbar
|
||||
&& getSDK() >= 21 // There is an issue with the DrawableContainer which was fixed for API version 21 and above: https://code.google.com/p/android/issues/detail?id=60183
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user