Fix an upgrade bug in SettingsProvider.

Bug: 2569112

Wrong usage of local method.

Change-Id: I9d7c68baa7cf8dd2b7e4345555c1edc374de94e6
This commit is contained in:
Amith Yamasani
2010-04-12 15:49:12 -07:00
parent 290a48b365
commit cd66caf015

View File

@@ -789,7 +789,8 @@ public class DatabaseHelper extends SQLiteOpenHelper {
+ " VALUES(?,?);");
// Set the timeout to 30 minutes in milliseconds
loadIntegerSetting(stmt, Settings.System.SCREEN_OFF_TIMEOUT, 30 * 60 * 1000);
loadSetting(stmt, Settings.System.SCREEN_OFF_TIMEOUT,
Integer.toString(30 * 60 * 1000));
} finally {
if (stmt != null) stmt.close();
}