Ignore:
Timestamp:
08/24/07 22:05:08 (5 years ago)
Author:
saua
Message:

Implement details screen (issue #18)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bbtracker/trunk/src/org/bbtracker/mobile/Preferences.java

    r79 r93  
    9393        private int statusFontSize = Font.SIZE_MEDIUM; 
    9494 
     95        private int detailsFontSize = Font.SIZE_LARGE; 
     96 
    9597        private String trackDirectory; 
    9698 
     
    182184        } 
    183185 
     186        public int getDetailsFontSize() { 
     187                return detailsFontSize; 
     188        } 
     189 
     190        public void setDetailsFontSize(final int detailsFontSize) { 
     191                this.detailsFontSize = detailsFontSize; 
     192        } 
     193 
    184194        public int getNextTrackNumber() { 
    185195                return trackNumber++; 
     
    207217                        final DataInputStream in = new DataInputStream(new ByteArrayInputStream(data)); 
    208218 
    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 
    222240                } catch (final RecordStoreNotFoundException e) { 
    223241                        // ignore, don't load anything, but show options screen 
     
    260278                        out.writeInt(units); 
    261279                        out.writeInt(statusFontSize); 
     280                        out.writeInt(detailsFontSize); 
    262281 
    263282                        out.close(); 
Note: See TracChangeset for help on using the changeset viewer.