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

Commit b1c1ae95 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Don't resume PowerStatsDataStorage read on Exception" into sc-dev

parents 9c219f14 9f6044a2
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -124,12 +124,8 @@ public class PowerStatsDataStorage {
        @Override
        public void read(InputStream in) throws IOException {
            while (in.available() > 0) {
                try {
                DataElement dataElement = new DataElement(in);
                mCallback.onReadDataElement(dataElement.getData());
                } catch (IOException e) {
                    Slog.e(TAG, "Failed to read from storage. " + e.getMessage());
                }
            }
        }
    }