Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 22e76c54 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[SettingsProvider] do not close MemoryIntArray if in system server" into udc-dev

parents 6a4db881 457e39b3
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3036,7 +3036,9 @@ public final class Settings {
        public void destroy() {
            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();
                }
            } catch (IOException e) {