Support some phone information in Settings slice

- Android version
- Device model

Test: robo test, manual test
Change-Id: Ic047caaf4ab699082f6420ad8fa1d2f455abfcb0
Fixes: 74900516
This commit is contained in:
tmfang
2018-09-28 15:05:07 +08:00
parent 3f9ded6206
commit 4f40a8e287
5 changed files with 25 additions and 3 deletions

View File

@@ -73,6 +73,11 @@ public class DeviceModelPreferenceController extends BasePreferenceController {
return true;
}
@Override
public boolean isSliceable() {
return true;
}
public static String getDeviceModel() {
FutureTask<String> msvSuffixTask = new FutureTask<String>(new Callable<String>() {
@Override

View File

@@ -56,4 +56,9 @@ public class FirmwareVersionPreferenceController extends BasePreferenceControlle
FirmwareVersionDialogFragment.show(mFragment);
return true;
}
@Override
public boolean isSliceable() {
return true;
}
}