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

Commit 04ec969f 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...

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

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