Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- reader = new BufferedReader(new FileReader(currentClockFile));
- input = reader.readLine();
- reader.close();
- if (clockType == CLOCK_TYPE.MIN || clockType == CLOCK_TYPE.MAX)
- currentValue = (Integer.parseInt(input) / 1000) + " MHz";
- else
- currentValue = input;
- preference.setValue(currentValue);
- if (bootClockFile.exists() && new File(mContext.getDir("eos", Context.MODE_PRIVATE),
- "clocks_on_boot").exists()) {
- reader = new BufferedReader(new FileReader(bootClockFile));
- bootValue = reader.readLine();
- reader.close();
- if (bootValue == null && (clockType == CLOCK_TYPE.MIN || clockType == CLOCK_TYPE.MAX)) {
- bootValue = currentValue;
- } else {
- if (clockType == CLOCK_TYPE.MIN || clockType == CLOCK_TYPE.MAX)
- bootValue = (Integer.parseInt(bootValue) / 1000) + " MHz";
- }
- }
- updatePreferenceSummary(preference, currentValue, bootValue);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement