Skip to content

Commit

Permalink
LineageSettingsProvider: Relocate loadRestrictedNetworkingModeSetting…
Browse files Browse the repository at this point in the history
… call

It shouldn't be in a SQLiteStatement block.

Change-Id: I342af1f9e52150bd87aa20701a7109db3fa6f2bb
  • Loading branch information
mikeNG committed May 29, 2024
1 parent d0c004c commit baebbbf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@ private void loadSettings(SQLiteDatabase db) {
// The global table only exists for the 'owner' user
if (mUserHandle == UserHandle.USER_SYSTEM) {
loadGlobalSettings(db);
loadRestrictedNetworkingModeSetting();
}
}

Expand Down Expand Up @@ -466,7 +467,6 @@ private void loadGlobalSettings(SQLiteDatabase db) {
stmt = db.compileStatement("INSERT OR IGNORE INTO global(name,value)"
+ " VALUES(?,?);");
// Global
loadRestrictedNetworkingModeSetting();
} finally {
if (stmt != null) stmt.close();
}
Expand Down

0 comments on commit baebbbf

Please sign in to comment.