@Override
 public void onFolderSelection(File file) {
   if (file.exists() && file.isDirectory() && file.canWrite()) {
     Log.d("Settings", "Download path changed to " + file.getAbsolutePath());
     Preferences.getInstance().setWallpaperDownloadDirectory(file.getAbsolutePath());
     if (settingsItem != null) settingsItem.onStorageChanged(file.getAbsolutePath());
   }
 }
Beispiel #2
0
 public KMEDataConfig() {
   super.askFrame = new byte[] {0x65, 0x04, 0x04, 0x6D};
   super.answerSize = 15;
   rows[0] = SettingsRow.makeSettingsRow(new SettingsItem[] {ActuatorMaxOpenOnLoad});
   rows[1] = SettingsRow.makeSettingsRow(new SettingsItem[] {ActuatorMinOpenOnLoad});
   rows[2] = SettingsRow.makeSettingsRow(new SettingsItem[] {ATTTPSSenseLevel});
   rows[3] = SettingsRow.makeSettingsRow(new SettingsItem[] {ATTEnrichFuelMixture});
   rows[4] = SettingsRow.makeSettingsRow(new SettingsItem[] {SwitchOnLPGRPM1});
   rows[5] = SettingsRow.makeSettingsRow(new SettingsItem[] {SwitchOnLPGRPM2});
   rows[6] = SettingsRow.makeSettingsRow(new SettingsItem[] {IgnitionType});
   rows[7] = SettingsRow.makeSettingsRow(new SettingsItem[] {MinimalCutoffRPMS1});
   rows[8] = SettingsRow.makeSettingsRow(new SettingsItem[] {MinimalCutoffRPMS2});
   rows[9] = SettingsRow.makeSettingsRow(new SettingsItem[] {CutoffMixtureImpoverishment});
   rows[10] = SettingsRow.makeSettingsRow(new SettingsItem[] {HighRPMLimit1});
   rows[11] = SettingsRow.makeSettingsRow(new SettingsItem[] {HighRPMLimit2});
   rows[12] = SettingsRow.makeSettingsRow(new SettingsItem[] {ActuatorMaxOpenOnIdle});
   rows[13] = SettingsRow.makeSettingsRow(new SettingsItem[] {ActuatorMinOpenOnIdle});
   HighRPMLimit1.SetValue(0xFF);
   HighRPMLimit2.SetValue(0xFF);
   SwitchOnLPGRPM1.SetValue(0xFF);
   SwitchOnLPGRPM2.SetValue(0xFF);
   MinimalCutoffRPMS1.SetValue(0xFF);
   MinimalCutoffRPMS2.SetValue(0xFF);
 }