Skip to content

Commit e7e04f6

Browse files
committed
fix(switch): android native-api-usage fix
1 parent 9be7883 commit e7e04f6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"uses": [
3-
"com.google.android.material.switchmaterial:MaterialSwitch",
3+
"com.google.android.material.materialswitch:MaterialSwitch",
44
"androidx.appcompat.widget:SwitchCompat"
55
]
66
}

src/switch/index.android.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { Color, PercentLength, heightProperty } from '@nativescript/core';
1+
import { checkedProperty } from '@nativescript/core/ui/switch';
22
import { SwitchBase } from './index-common';
33

44
export class Switch extends SwitchBase {
5-
nativeViewProtected: com.google.android.material.progressindicator.LinearProgressIndicator;
5+
nativeViewProtected: com.google.android.material.materialswitch.MaterialSwitch;
66

77
// added in 1.7.0
88
createNativeView() {

src/typings/mdc.android.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13933,7 +13933,7 @@ declare module com {
1393313933
export module android {
1393413934
export module material {
1393513935
export module materialswitch {
13936-
export class MaterialSwitch {
13936+
export class MaterialSwitch extends androidx.appcompat.widget.SwitchCompat {
1393713937
public static class: java.lang.Class<com.google.android.material.materialswitch.MaterialSwitch>;
1393813938
public setTrackDecorationTintList(param0: globalAndroid.content.res.ColorStateList): void;
1393913939
public constructor(param0: globalAndroid.content.Context);

0 commit comments

Comments
 (0)