Merge "Use Buffered reader when loading favorites" into rvc-dev am: 450205e4c6 am: 478928abad am: a2677f592f
Change-Id: I5428442540d71d85ff963f677eff50e3e5f83094
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user