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:
Raff Tsai
2018-11-30 16:16:10 +08:00
parent 1ad5c9805a
commit 626c6e0b17
16 changed files with 69 additions and 48 deletions

View File

@@ -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();
}