Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a50f43e0 authored by Adam Lesinski's avatar Adam Lesinski Committed by Android Git Automerger
Browse files

am 23e19066: Merge "BatteryStats: Read /proc/wakelocks first before trying...

am 23e19066: Merge "BatteryStats: Read /proc/wakelocks first before trying /d/wakeup_sources" into mnc-dev

* commit '23e19066':
  BatteryStats: Read /proc/wakelocks first before trying /d/wakeup_sources
parents 6391a8d4 23e19066
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -67,13 +67,13 @@ public class KernelWakelockReader {

        try {
            FileInputStream is;
            try {
                is = new FileInputStream(sWakeupSourceFile);
                wakeup_sources = true;
            } catch (java.io.FileNotFoundException e) {
            try {
                is = new FileInputStream(sWakelockFile);
                wakeup_sources = false;
            } catch (java.io.FileNotFoundException e) {
                try {
                    is = new FileInputStream(sWakeupSourceFile);
                    wakeup_sources = true;
                } catch (java.io.FileNotFoundException e2) {
                    return null;
                }