Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Commit

Permalink
Merge pull request #7 from f6v/master
Browse files Browse the repository at this point in the history
Fix demo issues
  • Loading branch information
Benjamin AUGUSTIN committed Jul 27, 2015
2 parents b29b932 + f3f5b88 commit 42c9552
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions demo/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.novoda.rxpresso.demo" >

<uses-permission android:name="android.permission.INTERNET" />
<application
android:name="com.novoda.rxpresso.demo.SampleApplication"
android:allowBackup="true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import rx.Observer;
import rx.Subscription;
import rx.android.schedulers.AndroidSchedulers;
import rx.schedulers.Schedulers;

public class SampleActivity extends Activity {

Expand All @@ -27,6 +28,7 @@ protected void onCreate(Bundle savedInstanceState) {
protected void onResume() {
super.onResume();
subscription = dataRepository.getRandomNumber(10)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(new IntegerObserver());
}
Expand Down

0 comments on commit 42c9552

Please sign in to comment.