Changeset 93 for bbtracker/trunk/src/org/bbtracker/mobile/Preferences.java
- Timestamp:
- 08/24/07 22:05:08 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
bbtracker/trunk/src/org/bbtracker/mobile/Preferences.java
r79 r93 93 93 private int statusFontSize = Font.SIZE_MEDIUM; 94 94 95 private int detailsFontSize = Font.SIZE_LARGE; 96 95 97 private String trackDirectory; 96 98 … … 182 184 } 183 185 186 public int getDetailsFontSize() { 187 return detailsFontSize; 188 } 189 190 public void setDetailsFontSize(final int detailsFontSize) { 191 this.detailsFontSize = detailsFontSize; 192 } 193 184 194 public int getNextTrackNumber() { 185 195 return trackNumber++; … … 207 217 final DataInputStream in = new DataInputStream(new ByteArrayInputStream(data)); 208 218 209 startAction = in.readShort(); 210 sampleInterval = in.readInt(); 211 trackNumber = in.readInt(); 212 if (in.readByte() != 0) { 213 trackDirectory = in.readUTF(); 214 } else { 215 trackDirectory = null; 216 } 217 exportFormats = in.readInt(); 218 units = in.readInt(); 219 statusFontSize = in.readInt(); 220 221 in.close(); 219 try { 220 startAction = in.readShort(); 221 sampleInterval = in.readInt(); 222 trackNumber = in.readInt(); 223 if (in.readByte() != 0) { 224 trackDirectory = in.readUTF(); 225 } else { 226 trackDirectory = null; 227 } 228 exportFormats = in.readInt(); 229 units = in.readInt(); 230 statusFontSize = in.readInt(); 231 detailsFontSize = in.readInt(); 232 } finally { 233 try { 234 in.close(); 235 } catch (final IOException ignored) { 236 // ignore 237 } 238 } 239 222 240 } catch (final RecordStoreNotFoundException e) { 223 241 // ignore, don't load anything, but show options screen … … 260 278 out.writeInt(units); 261 279 out.writeInt(statusFontSize); 280 out.writeInt(detailsFontSize); 262 281 263 282 out.close();
Note: See TracChangeset
for help on using the changeset viewer.