mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
add Language type constant
This commit is contained in:
parent
75d35dadca
commit
665a46a65a
@ -23,5 +23,7 @@ public class MobilePluginConstants {
|
||||
|
||||
public static final String MEDIA_TYPE_XML = "application/xml";
|
||||
public static final String CHARSET_UTF8 = "UTF8";
|
||||
public static final String LANGUAGE_CODE_ENGLISH_US = "en_US";
|
||||
public static final String LANGUAGE_CODE_ENGLISH_UK = "en_UK";
|
||||
|
||||
}
|
||||
|
||||
@ -60,7 +60,8 @@ public class AndroidDeviceManager implements DeviceManager {
|
||||
License defaultLicense;
|
||||
|
||||
try {
|
||||
if (licenseManager.getLicense(AndroidDeviceManagementService.DEVICE_TYPE_ANDROID, "en_US") == null) {
|
||||
if (licenseManager.getLicense(AndroidDeviceManagementService.DEVICE_TYPE_ANDROID,
|
||||
MobilePluginConstants.LANGUAGE_CODE_ENGLISH_US) == null) {
|
||||
defaultLicense = AndroidPluginUtils.getDefaultLicense();
|
||||
licenseManager.addLicense(AndroidDeviceManagementService.DEVICE_TYPE_ANDROID, defaultLicense);
|
||||
}
|
||||
|
||||
@ -61,7 +61,8 @@ public class WindowsDeviceManager implements DeviceManager {
|
||||
License defaultLicense = WindowsPluginUtils.getDefaultLicense();
|
||||
|
||||
try {
|
||||
if (licenseManager.getLicense(WindowsDeviceManagementService.DEVICE_TYPE_WINDOWS, "en_US") == null) {
|
||||
if (licenseManager.getLicense(WindowsDeviceManagementService.DEVICE_TYPE_WINDOWS,
|
||||
MobilePluginConstants.LANGUAGE_CODE_ENGLISH_US) == null) {
|
||||
licenseManager.addLicense(WindowsDeviceManagementService.DEVICE_TYPE_WINDOWS, defaultLicense);
|
||||
}
|
||||
featureManager.addSupportedFeaturesToDB();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user