kopia lustrzana https://github.com/ge0rg/aprsdroid
List views: increase to 300 items, it's 2017!
rodzic
303c85da00
commit
6676338a14
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue