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

Commit 450205e4 authored by Fabian Kozynski's avatar Fabian Kozynski Committed by Android (Google) Code Review
Browse files

Merge "Use Buffered reader when loading favorites" into rvc-dev

parents d4d2427c 99f1015e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@ import com.android.systemui.backup.BackupHelper
import libcore.io.IoUtils
import org.xmlpull.v1.XmlPullParser
import org.xmlpull.v1.XmlPullParserException
import java.io.BufferedInputStream
import java.io.File
import java.io.FileInputStream
import java.io.FileNotFoundException
@@ -152,7 +153,7 @@ class ControlsFavoritePersistenceWrapper(
            return emptyList()
        }
        val reader = try {
            FileInputStream(file)
            BufferedInputStream(FileInputStream(file))
        } catch (fnfe: FileNotFoundException) {
            Log.i(TAG, "No file found")
            return emptyList()