Replace SliceAction deprecated method
- Replace new SliceAction with SliceAction.createDeeplink() or SliceAction.create() Test: make RunSettingsRoboTests Change-Id: Ied34469d2220d8220a2dcc6c2fb4d32dd9cd9b8c Fixes: 119879284
This commit is contained in:
@@ -83,7 +83,7 @@ public class FlashlightSliceBuilder {
|
||||
.setTitle(context.getText(R.string.power_flashlight))
|
||||
.setTitleItem(icon, ICON_IMAGE)
|
||||
.setPrimaryAction(
|
||||
new SliceAction(toggleAction, null, isFlashlightEnabled(context))))
|
||||
SliceAction.createToggle(toggleAction, null, isFlashlightEnabled(context))))
|
||||
.build();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user