mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-11 01:21:56 +01:00
Device settings: simplified array conversion
This commit is contained in:
parent
f1968f4103
commit
ec6fa23176
@ -1065,10 +1065,7 @@ public class DeviceSpecificSettingsFragment extends AbstractPreferenceFragment i
|
||||
supportedSettings.add(R.xml.devicesettings_settings_third_party_apps);
|
||||
}
|
||||
|
||||
int[] supportedSettingsInts = new int[supportedSettings.size()];
|
||||
for(int i = 0; i < supportedSettings.size(); i++){
|
||||
supportedSettingsInts[i] = supportedSettings.get(i);
|
||||
}
|
||||
int[] supportedSettingsInts = ArrayUtils.toPrimitive(supportedSettings.toArray(new Integer[0]));
|
||||
|
||||
final DeviceSpecificSettingsCustomizer deviceSpecificSettingsCustomizer = coordinator.getDeviceSpecificSettingsCustomizer(device);
|
||||
final String settingsFileSuffix = device.getAddress();
|
||||
|
Loading…
Reference in New Issue
Block a user