Loading core/java/android/app/SharedPreferencesImpl.java +10 −10 Original line number Diff line number Diff line Loading @@ -592,20 +592,20 @@ final class SharedPreferencesImpl implements SharedPreferences { if (mFile.exists()) { boolean needsWrite = false; if (isFromSyncCommit) { // Only need to write if the disk state is older than this commit if (mDiskStateGeneration < mcr.memoryStateGeneration) { if (isFromSyncCommit) { needsWrite = true; } } else { synchronized (this) { // No need to persist intermediate states. Just wait for the latest state to be // persisted. // No need to persist intermediate states. Just wait for the latest state to // be persisted. if (mCurrentMemoryStateGeneration == mcr.memoryStateGeneration) { needsWrite = true; } } } } if (!needsWrite) { if (DEBUG) { Loading Loading
core/java/android/app/SharedPreferencesImpl.java +10 −10 Original line number Diff line number Diff line Loading @@ -592,20 +592,20 @@ final class SharedPreferencesImpl implements SharedPreferences { if (mFile.exists()) { boolean needsWrite = false; if (isFromSyncCommit) { // Only need to write if the disk state is older than this commit if (mDiskStateGeneration < mcr.memoryStateGeneration) { if (isFromSyncCommit) { needsWrite = true; } } else { synchronized (this) { // No need to persist intermediate states. Just wait for the latest state to be // persisted. // No need to persist intermediate states. Just wait for the latest state to // be persisted. if (mCurrentMemoryStateGeneration == mcr.memoryStateGeneration) { needsWrite = true; } } } } if (!needsWrite) { if (DEBUG) { Loading