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