android: Suppress a setDatabaseEnabled deprecation warning.
Some checks failed
Build Tilde Friends / Build-All (push) Has been cancelled
Some checks failed
Build Tilde Friends / Build-All (push) Has been cancelled
This commit is contained in:
@ -110,9 +110,9 @@ public class TildeFriendsActivity extends Activity {
|
||||
server_thread.start();
|
||||
|
||||
web_view.getSettings().setJavaScriptEnabled(true);
|
||||
web_view.getSettings().setDatabaseEnabled(true);
|
||||
web_view.getSettings().setDomStorageEnabled(true);
|
||||
|
||||
set_database_enabled();
|
||||
set_database_path();
|
||||
|
||||
web_view.setDownloadListener(new DownloadListener() {
|
||||
@ -451,4 +451,10 @@ public class TildeFriendsActivity extends Activity {
|
||||
web_view.getSettings().setDatabasePath(getDatabasePath("webview").getPath());
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
private void set_database_enabled()
|
||||
{
|
||||
web_view.getSettings().setDatabaseEnabled(true);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user