Skip to content

Commit

Permalink
πŸ› οΈ Change default page size
Browse files Browse the repository at this point in the history
  • Loading branch information
ericktijerou committed Jun 30, 2020
1 parent b6303e3 commit 9568013
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import androidx.paging.LivePagedListBuilder
import androidx.paging.PagedList
import koleton.sample.model.Journey
import koleton.sample.utils.DEFAULT_PAGE_SIZE
import koleton.sample.utils.Helper
import koleton.sample.utils.Listing
import java.util.concurrent.Executor

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package koleton.sample.utils

import android.content.Context
import android.content.res.Resources
import android.view.View
import androidx.annotation.DimenRes
import koleton.sample.list.repository.JourneyRepository
Expand Down Expand Up @@ -29,5 +28,5 @@ fun getViewModelFactory(): ViewModelFactory {
}

const val DEFAULT_DELAY: Long = 3000
const val DEFAULT_PAGE_SIZE: Int = 6
const val DEFAULT_PAGE_SIZE: Int = 10
const val ITEM_COUNT: Int = 3
68 changes: 68 additions & 0 deletions koleton-sample/src/main/kotlin/koleton/sample/utils/Helper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,74 @@ class Helper {
driverImage = R.drawable.driver_three,
carIcon = R.drawable.ic_car_minivan,
mapImage = R.drawable.map_three
),
Journey(
id = "7",
date = "Tuesday, 21 April",
pickUpTime = "01:14 PM",
dropOffTime = "01:30 PM",
pickUpPoint = "1600 Amphitheatre Parkway Mountain View, CA 94043",
dropOffPoint = "1600 Seaport Boulevard Redwood City, CA 94063",
driverName = "Jared",
carName = "Nissan Altima",
basePrice = "$14.00",
servicePrice = "$1.24",
total = "$15.24",
paymentMethod = "βˆ™βˆ™βˆ™βˆ™ 7869",
driverImage = R.drawable.driver_one,
carIcon = R.drawable.ic_car_sedan,
mapImage = R.drawable.map_one
),
Journey(
id = "8",
date = "Monday, 11 March",
pickUpTime = "08:17 PM",
dropOffTime = "08:45 PM",
pickUpPoint = "1600 Seaport Boulevard Redwood City, CA 94063",
dropOffPoint = "901 Cherry Avenue San Bruno, CA 94066",
driverName = "Alex",
carName = "BMW 528i",
basePrice = "$25.00",
servicePrice = "$1.56",
total = "$26.56",
paymentMethod = "βˆ™βˆ™βˆ™βˆ™ 4315",
driverImage = R.drawable.driver_two,
carIcon = R.drawable.ic_car_coupe,
mapImage = R.drawable.map_two
),
Journey(
id = "9",
date = "Saturday, 29 February",
pickUpTime = "10:22 AM",
dropOffTime = "10:45 PM",
pickUpPoint = "901 Cherry Avenue San Bruno, CA 94066",
dropOffPoint = "345 Spear Street San Francisco, CA 94105",
driverName = "Albers",
carName = "Hyundai Santa Fe",
basePrice = "$33.00",
servicePrice = "$1.78",
total = "$34.78",
paymentMethod = "βˆ™βˆ™βˆ™βˆ™ 5642",
driverImage = R.drawable.driver_three,
carIcon = R.drawable.ic_car_minivan,
mapImage = R.drawable.map_three
),
Journey(
id = "10",
date = "Tuesday, 21 April",
pickUpTime = "01:14 PM",
dropOffTime = "01:30 PM",
pickUpPoint = "1600 Amphitheatre Parkway Mountain View, CA 94043",
dropOffPoint = "1600 Seaport Boulevard Redwood City, CA 94063",
driverName = "Jared",
carName = "Nissan Altima",
basePrice = "$14.00",
servicePrice = "$1.24",
total = "$15.24",
paymentMethod = "βˆ™βˆ™βˆ™βˆ™ 7869",
driverImage = R.drawable.driver_one,
carIcon = R.drawable.ic_car_sedan,
mapImage = R.drawable.map_one
)
)
}
Expand Down

0 comments on commit 9568013

Please sign in to comment.