Advertisement
bigrushdog

perf_fix

Jun 27th, 2012
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.06 KB | None | 0 0
  1.         reader = new BufferedReader(new FileReader(currentClockFile));
  2.         input = reader.readLine();
  3.         reader.close();
  4.         if (clockType == CLOCK_TYPE.MIN || clockType == CLOCK_TYPE.MAX)
  5.             currentValue = (Integer.parseInt(input) / 1000) + " MHz";
  6.         else
  7.             currentValue = input;
  8.         preference.setValue(currentValue);
  9.        
  10.         if (bootClockFile.exists() && new File(mContext.getDir("eos", Context.MODE_PRIVATE),
  11.                 "clocks_on_boot").exists()) {
  12.             reader = new BufferedReader(new FileReader(bootClockFile));
  13.             bootValue = reader.readLine();
  14.             reader.close();
  15.             if (bootValue == null && (clockType == CLOCK_TYPE.MIN || clockType == CLOCK_TYPE.MAX)) {
  16.                 bootValue = currentValue;
  17.             } else {
  18.             if (clockType == CLOCK_TYPE.MIN || clockType == CLOCK_TYPE.MAX)
  19.                 bootValue = (Integer.parseInt(bootValue) / 1000) + " MHz";
  20.             }
  21.         }
  22.         updatePreferenceSummary(preference, currentValue, bootValue);
  23.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement