Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
commonsguy committed Sep 3, 2014
1 parent 8650f19 commit 9a417c8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
12 changes: 5 additions & 7 deletions EventBus/AsyncDemo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,22 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.10.+'
classpath 'com.android.tools.build:gradle:0.12.2'
}
}
apply plugin: 'android'
apply plugin: 'com.android.application'

repositories {
mavenCentral()
}

dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
compile 'com.android.support:support-v4:19.1.0'
compile 'de.greenrobot:eventbus:2.2.1'
}

android {
compileSdkVersion 18
buildToolsVersion "19.0.1"
compileSdkVersion 19
buildToolsVersion "19.1.0"

defaultConfig {
targetSdkVersion 17
Expand Down
2 changes: 1 addition & 1 deletion EventBus/AsyncDemo/project.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
target=android-15
target=android-19
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ public void onDetach() {
}

public void onEventMainThread(WordReadyEvent event) {
model.add(event.getWord());
adapter.notifyDataSetChanged();
adapter.add(event.getWord());
}

public void setModel(ArrayList<String> model) {
Expand Down

0 comments on commit 9a417c8

Please sign in to comment.