From 6676338a14f260d06251d9b214a7deb72c94cf08 Mon Sep 17 00:00:00 2001 From: Georg Lukas Date: Tue, 23 May 2017 17:02:47 +0200 Subject: [PATCH] List views: increase to 300 items, it's 2017! --- src/LogActivity.scala | 6 +++--- src/StationActivity.scala | 2 +- src/StationListAdapter.scala | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/LogActivity.scala b/src/LogActivity.scala index f5deb15..466444e 100644 --- a/src/LogActivity.scala +++ b/src/LogActivity.scala @@ -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 } diff --git a/src/StationActivity.scala b/src/StationActivity.scala index a083e33..074a947 100644 --- a/src/StationActivity.scala +++ b/src/StationActivity.scala @@ -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 } diff --git a/src/StationListAdapter.scala b/src/StationListAdapter.scala index 4b5d360..9165b5e 100644 --- a/src/StationListAdapter.scala +++ b/src/StationListAdapter.scala @@ -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()