mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 18:56:44 -04:00
Two space indentation
This commit is contained in:
parent
c83655d29c
commit
1fd4c9d0ea
@ -18,8 +18,7 @@ import java.util.HashMap;
|
||||
public static final String CONTACTS_COLUMN_ID = "id";
|
||||
public static final String CONTACTS_COLUMN_SEARCH = "search";
|
||||
|
||||
public DatabaseHelper(Context context)
|
||||
{
|
||||
public DatabaseHelper(Context context) {
|
||||
super(context, DATABASE_NAME, null, 1);
|
||||
}
|
||||
|
||||
@ -39,8 +38,7 @@ import java.util.HashMap;
|
||||
onCreate(db);
|
||||
}
|
||||
|
||||
public boolean insertSearch (String search)
|
||||
{
|
||||
public boolean insertSearch(String search) {
|
||||
SQLiteDatabase db = this.getWritableDatabase();
|
||||
ContentValues contentValues = new ContentValues();
|
||||
contentValues.put(CONTACTS_COLUMN_SEARCH, search);
|
||||
@ -60,16 +58,14 @@ import java.util.HashMap;
|
||||
return numRows;
|
||||
}
|
||||
|
||||
public Integer deleteSearches (Integer id)
|
||||
{
|
||||
public Integer deleteSearches(Integer id) {
|
||||
SQLiteDatabase db = this.getWritableDatabase();
|
||||
return db.delete(CONTACTS_TABLE_NAME,
|
||||
"id = ? ",
|
||||
new String[]{Integer.toString(id)});
|
||||
}
|
||||
|
||||
public ArrayList<String> getRecentSearches()
|
||||
{
|
||||
public ArrayList<String> getRecentSearches() {
|
||||
ArrayList<String> array_list = new ArrayList<String>();
|
||||
|
||||
//hp = new HashMap();
|
||||
|
@ -42,9 +42,9 @@ public class HTMLUtils {
|
||||
}
|
||||
|
||||
|
||||
class HTMLinterface
|
||||
{
|
||||
class HTMLinterface {
|
||||
int i = 0;
|
||||
|
||||
@JavascriptInterface
|
||||
@SuppressWarnings("unused")
|
||||
public void parse(final String sectionTitle, final String element, final String id) {
|
||||
@ -96,6 +96,7 @@ public class HTMLUtils {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@JavascriptInterface
|
||||
@SuppressWarnings("unused")
|
||||
public void start() {
|
||||
@ -110,6 +111,7 @@ public class HTMLUtils {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@JavascriptInterface
|
||||
@SuppressWarnings("unused")
|
||||
public void stop() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user