List views: increase to 300 items, it's 2017!

pull/191/head
Georg Lukas 2017-05-23 17:02:47 +02:00
rodzic 303c85da00
commit 6676338a14
3 zmienionych plików z 7 dodań i 7 usunięć

Wyświetl plik

@ -20,7 +20,7 @@ class LogActivity extends MainListActivity("log", R.id.log) {
val TAG = "APRSdroid.Log"
lazy val storage = StorageDatabase.open(this)
lazy val postcursor = storage.getPosts("100")
lazy val postcursor = storage.getPosts("300")
lazy val postlist = getListView()
@ -37,7 +37,7 @@ class LogActivity extends MainListActivity("log", R.id.log) {
onStartLoading()
la.setFilterQueryProvider(storage.getPostFilter("100"))
la.setFilterQueryProvider(storage.getPostFilter("300"))
postlist.setAdapter(la)
postlist.setTextFilterEnabled(true)
@ -74,7 +74,7 @@ class LogActivity extends MainListActivity("log", R.id.log) {
}
def load_cursor(i : Intent) = {
val c = storage.getPosts("100")
val c = storage.getPosts("300")
c.getCount()
c
}

Wyświetl plik

@ -71,7 +71,7 @@ class StationActivity extends StationHelper(R.string.app_sta)
}
def load_cursor(i : Intent) = {
val c = storage.getStaPosts(targetcall, "100")
val c = storage.getStaPosts(targetcall, "300")
c.getCount()
c
}

Wyświetl plik

@ -94,10 +94,10 @@ class StationListAdapter(context : Context, prefs : PrefsWrapper,
def runQuery(constraint : CharSequence) = {
if (constraint.length() > 0)
storage.getNeighborsLike("%s%%".format(constraint),
my_lat, my_lon, System.currentTimeMillis - prefs.getShowAge(), "50")
my_lat, my_lon, System.currentTimeMillis - prefs.getShowAge(), "300")
else
storage.getNeighbors(mycall, my_lat, my_lon,
System.currentTimeMillis - prefs.getShowAge(), "50")
System.currentTimeMillis - prefs.getShowAge(), "300")
}
}
@ -113,7 +113,7 @@ class StationListAdapter(context : Context, prefs : PrefsWrapper,
val c = mode match {
case SINGLE => storage.getStaPosition(targetcall)
case NEIGHBORS => storage.getNeighbors(mycall, my_lat, my_lon,
System.currentTimeMillis - prefs.getShowAge(), "50")
System.currentTimeMillis - prefs.getShowAge(), "300")
case SSIDS => storage.getAllSsids(targetcall)
}
c.getCount()