diff options
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/controls/controller/ControlsFavoritePersistenceWrapper.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/controls/controller/ControlsFavoritePersistenceWrapper.kt b/packages/SystemUI/src/com/android/systemui/controls/controller/ControlsFavoritePersistenceWrapper.kt index cde258a056db..1bda841d4a63 100644 --- a/packages/SystemUI/src/com/android/systemui/controls/controller/ControlsFavoritePersistenceWrapper.kt +++ b/packages/SystemUI/src/com/android/systemui/controls/controller/ControlsFavoritePersistenceWrapper.kt @@ -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() |