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

Commit a2677f59 authored by Fabian Kozynski's avatar Fabian Kozynski Committed by Automerger Merge Worker
Browse files

Merge "Use Buffered reader when loading favorites" into rvc-dev am: 450205e4 am: 478928ab

Change-Id: I2bffcd94ec0562f5fd48fb0c73edfe95e1180fe9
parents 8aad92e3 478928ab
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()