Skip to content

Commit

Permalink
Remove obsolete comment.
Browse files Browse the repository at this point in the history
Preferences should never be instantiated on main/UI thread anyway,
because even loading the xml file without any moving is I/O.
  • Loading branch information
LouisCAD committed Nov 25, 2018
1 parent 57b01db commit 4bfa345
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@ abstract class Preferences(
val storageCtx: Context = if (availableAtDirectBoot && SDK_INT > 24) {
// Moving the sharedPreferences from is done by the system only if you had it outside
// the direct boot available storage or if the device was running Android M or older,
// and just got updated. These two cases are extremely rare, and it's unlikely that your
// sharedPreferences are big enough to significantly harm the user experience because of
// the operation happening on UI thread for the single time (per preference file) this
// move operations will take place.
// and just got updated.
directBootCtx.moveSharedPreferencesFrom(appCtx, name)
directBootCtx
} else appCtx
Expand Down

0 comments on commit 4bfa345

Please sign in to comment.