Added stroke and cache for data
This commit is contained in:
parent
ad3b15db3b
commit
6a51f72da4
@ -106,6 +106,10 @@ class DataProvider(
|
||||
|
||||
fun requestBusinessDetail(id: String)
|
||||
{
|
||||
if (reviewListCache.containsKey(id) && reviewListCache[id] != null)
|
||||
{
|
||||
onUpdateReviewList(reviewListCache[id]!!)
|
||||
}
|
||||
|
||||
Ion.with(context)
|
||||
.load("https://api.yelp.com/v3/businesses/${id}")
|
||||
@ -129,6 +133,10 @@ class DataProvider(
|
||||
|
||||
fun requestReviewList(id: String)
|
||||
{
|
||||
if (businessDetailCache.containsKey(id) && businessDetailCache[id] != null)
|
||||
{
|
||||
onUpdateBusinessDetail(businessDetailCache[id]!!)
|
||||
}
|
||||
|
||||
Ion.with(context)
|
||||
.load("https://api.yelp.com/v3/businesses/${id}/reviews")
|
||||
|
@ -46,7 +46,11 @@
|
||||
android:text="Toolbar Title"
|
||||
android:textColor="#ffffff"
|
||||
android:textSize="22sp"
|
||||
android:textStyle="bold" />
|
||||
android:textStyle="bold"
|
||||
android:shadowColor="#000000"
|
||||
android:shadowDx="1.5"
|
||||
android:shadowDy="1.3"
|
||||
android:shadowRadius="1.6"/>
|
||||
|
||||
<android.support.v7.widget.Toolbar
|
||||
android:id="@+id/toolbar"
|
||||
@ -63,7 +67,11 @@
|
||||
android:text="Toolbar Title"
|
||||
android:textColor="#ffffff"
|
||||
android:textSize="22sp"
|
||||
android:textStyle="bold" />
|
||||
android:textStyle="bold"
|
||||
android:shadowColor="#000000"
|
||||
android:shadowDx="1.5"
|
||||
android:shadowDy="1.3"
|
||||
android:shadowRadius="1.6"/>
|
||||
</android.support.v7.widget.Toolbar>
|
||||
</android.support.design.widget.CollapsingToolbarLayout>
|
||||
</android.support.design.widget.AppBarLayout>
|
||||
|
Loading…
Reference in New Issue
Block a user