Loading res/values/config.xml +3 −0 Original line number Diff line number Diff line Loading @@ -698,4 +698,7 @@ <!-- Whether checking adaptive charging to define battery manager visibility. --> <bool name="config_battery_manager_consider_ac">false</bool> <!-- Whether to display Cloned Apps page in Settings (Settings > Apps > Cloned Apps).--> <bool name="config_cloned_apps_page_enabled">false</bool> </resources> src/com/android/settings/applications/ClonedAppsPreferenceController.java +3 −1 Original line number Diff line number Diff line Loading @@ -56,7 +56,9 @@ public class ClonedAppsPreferenceController extends BasePreferenceController @Override public int getAvailabilityStatus() { return DeviceConfig.getBoolean(DeviceConfig.NAMESPACE_APP_CLONING, PROPERTY_CLONED_APPS_ENABLED, false) ? AVAILABLE : UNSUPPORTED_ON_DEVICE; PROPERTY_CLONED_APPS_ENABLED, false) && mContext.getResources().getBoolean(R.bool.config_cloned_apps_page_enabled) ? AVAILABLE : UNSUPPORTED_ON_DEVICE; } @Override Loading Loading
res/values/config.xml +3 −0 Original line number Diff line number Diff line Loading @@ -698,4 +698,7 @@ <!-- Whether checking adaptive charging to define battery manager visibility. --> <bool name="config_battery_manager_consider_ac">false</bool> <!-- Whether to display Cloned Apps page in Settings (Settings > Apps > Cloned Apps).--> <bool name="config_cloned_apps_page_enabled">false</bool> </resources>
src/com/android/settings/applications/ClonedAppsPreferenceController.java +3 −1 Original line number Diff line number Diff line Loading @@ -56,7 +56,9 @@ public class ClonedAppsPreferenceController extends BasePreferenceController @Override public int getAvailabilityStatus() { return DeviceConfig.getBoolean(DeviceConfig.NAMESPACE_APP_CLONING, PROPERTY_CLONED_APPS_ENABLED, false) ? AVAILABLE : UNSUPPORTED_ON_DEVICE; PROPERTY_CLONED_APPS_ENABLED, false) && mContext.getResources().getBoolean(R.bool.config_cloned_apps_page_enabled) ? AVAILABLE : UNSUPPORTED_ON_DEVICE; } @Override Loading