Skip to content

Commit

Permalink
RxJava and Retrofit demo
Browse files Browse the repository at this point in the history
#13
- delete rxjava zip demo
- zip demo used in ApproveListFragment.java
  • Loading branch information
eurosecom committed Apr 9, 2017
1 parent f0436e0 commit 5462ea5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 18 deletions.
1 change: 0 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
<activity android:name=".MapActivity"/>
<activity android:name=".RxbusActivity"/>
<activity android:name=".CheeseActivity"/>
<activity android:name=".RxzipActivity"/>



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ public void onClick(View v, int pos, boolean isLongClick) {
case 7:

// View v at position pos is clicked.
Intent i7 = new Intent(mContext, RxzipActivity.class);
v.getContext().startActivity(i7);
//Intent i7 = new Intent(mContext, RxzipActivity.class);
//v.getContext().startActivity(i7);

break;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,18 @@
import android.widget.TextView;
import android.widget.Toast;

import com.eusecom.attendance.ApproveActivity;

import com.eusecom.attendance.Constants;
import com.eusecom.attendance.FbmessClient;
import com.eusecom.attendance.GitHubRepoAdapter;
import com.eusecom.attendance.MainActivity;
import com.eusecom.attendance.NewAbsenceActivity;
import com.eusecom.attendance.NewPostActivity;
import com.eusecom.attendance.SettingsActivity;
import com.eusecom.attendance.models.Attendance;
import com.eusecom.attendance.models.DeletedAbs;
import com.eusecom.attendance.models.MessData;
import com.eusecom.attendance.models.Message;
import com.eusecom.attendance.models.NotifyData;
import com.eusecom.attendance.retrofit.RfContributor;
import com.eusecom.attendance.retrofit.RfEtestApi;
import com.eusecom.attendance.retrofit.RfEtestService;
import com.eusecom.attendance.retrofit.RfGithubApi;
import com.eusecom.attendance.retrofit.RfGithubService;
import com.eusecom.attendance.retrofit.RfUser;
import com.eusecom.attendance.viewholder.ApproveViewHolder;
import com.firebase.ui.database.FirebaseRecyclerAdapter;
Expand All @@ -52,27 +46,20 @@
import com.google.firebase.database.Transaction;
import com.eusecom.attendance.R;
import com.eusecom.attendance.models.Post;
import com.eusecom.attendance.viewholder.ApproveViewHolder;
import com.google.firebase.database.ValueEventListener;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

import io.reactivex.Observable;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.disposables.CompositeDisposable;
import io.reactivex.observers.DisposableObserver;
import io.reactivex.schedulers.Schedulers;
import rx.Observer;
import rx.Subscription;

import static android.text.TextUtils.isEmpty;
import static java.lang.String.format;

public abstract class ApproveListFragment extends Fragment {

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
<item >Settings</item>
<item >Demo Rx Bus</item>
<item >Demo Rx Search debounced</item>
<item >Demo Rx zip and flatmap</item>
<item >Free</item>
</string-array>

<string name="app_name1">Slider Menu 1</string>
Expand Down

0 comments on commit 5462ea5

Please sign in to comment.