Merge "[SettingsProvider] do not close MemoryIntArray if in system server" into udc-dev am: 22e76c5405
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23217745 Change-Id: Ifebcee3fac5853c0de22863cacc263d1895d6c68 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -3036,7 +3036,9 @@ public final class Settings {
|
|||||||
|
|
||||||
public void destroy() {
|
public void destroy() {
|
||||||
try {
|
try {
|
||||||
if (!mArray.isClosed()) {
|
// If this process is the system server process, mArray is the same object as
|
||||||
|
// the memory int array kept inside SettingsProvider, so skipping the close()
|
||||||
|
if (!Settings.isInSystemServer() && !mArray.isClosed()) {
|
||||||
mArray.close();
|
mArray.close();
|
||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user