Commit 3c7398ff authored by lumisce's avatar lumisce

Call getDishReviews

parent 8bd0b903
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
<ConfirmationsSetting value="0" id="Add" /> <ConfirmationsSetting value="0" id="Add" />
<ConfirmationsSetting value="0" id="Remove" /> <ConfirmationsSetting value="0" id="Remove" />
</component> </component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK"> <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" /> <output url="file://$PROJECT_DIR$/build/classes" />
</component> </component>
<component name="ProjectType"> <component name="ProjectType">
......
...@@ -2,7 +2,7 @@ apply plugin: 'com.android.application' ...@@ -2,7 +2,7 @@ apply plugin: 'com.android.application'
android { android {
compileSdkVersion 23 compileSdkVersion 23
buildToolsVersion "24.0.3" buildToolsVersion "23.0.3"
defaultConfig { defaultConfig {
applicationId "com.testapp" applicationId "com.testapp"
minSdkVersion 15 minSdkVersion 15
...@@ -31,5 +31,5 @@ dependencies { ...@@ -31,5 +31,5 @@ dependencies {
compile 'com.squareup.retrofit2:retrofit:2.1.0' compile 'com.squareup.retrofit2:retrofit:2.1.0'
compile 'com.squareup.retrofit2:converter-gson:2.1.0' compile 'com.squareup.retrofit2:converter-gson:2.1.0'
compile files('libs/picasso-2.5.2.jar') compile files('libs/picasso-2.5.2.jar')
compile 'com.android.support:support-v4:24.2.1' compile 'com.android.support:support-v4:23.2.1'
} }
...@@ -58,6 +58,7 @@ public class DishViewActivity extends AppCompatActivity { ...@@ -58,6 +58,7 @@ public class DishViewActivity extends AppCompatActivity {
ListView lv = (ListView) findViewById(R.id.dish_reviews); ListView lv = (ListView) findViewById(R.id.dish_reviews);
adapter = new DishReviewAdapter(this, reviews); adapter = new DishReviewAdapter(this, reviews);
lv.setAdapter(adapter); lv.setAdapter(adapter);
getDishReviews(i.getIntExtra("ID", 0));
} }
public void visitStall() { public void visitStall() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment