mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Device settings: simplified array conversion
This commit is contained in:
committed by
José Rebelo
parent
f1968f4103
commit
ec6fa23176
+1
-4
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user