This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Process: com.thisclicks.wiw, PID: 12734 | |
rx.exceptions.OnErrorFailedException: Error occurred when trying to propagate error to Observer.onError | |
at rx.observers.SafeSubscriber._onError(SafeSubscriber.java:192) | |
at rx.observers.SafeSubscriber.onError(SafeSubscriber.java:120) | |
at rx.internal.operators.OperatorDoOnEach$1.onError(OperatorDoOnEach.java:68) | |
at rx.internal.operators.OperatorDoOnEach$1.onError(OperatorDoOnEach.java:71) | |
at rx.internal.operators.OperatorMerge$MergeSubscriber.reportError(OperatorMerge.java:243) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Not working... | |
.getVolumesByLanguageCode(database, "ENG") | |
.subscribeOn(Schedulers.io()) | |
.observeOn(AndroidSchedulers.mainThread()) | |
.flatMap(new Func1<List<Volume>, Observable<Volume>>() { | |
@Override public Observable<Volume> call(List<Volume> volumes) { | |
return Observable.from(volumes); | |
} | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void fetchForUser(final Context ctx, RJUser user, final SpotResponse listener) { | |
JourneyRequest.getInstance(ctx).startAsync(SpotRoutes.userSpots(user.getId()), new JourneyRequest.RequestArrayListener() { | |
@Override | |
public void onSuccess(JSONArray response) { | |
Realm realm = Realm.getInstance(ctx); | |
realm.beginTransaction(); | |
try { | |
RealmList<RJSpot> spots = new RealmList<>(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MainActivity extends AppCompatActivity { | |
public static final String TAG = "MainActivity"; | |
/** You can also choose a cached thread pool to run threads in parallel. */ | |
public static final Executor sExecutor = Executors.newSingleThreadExecutor(); | |
@Override protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); | |
setSupportActionBar((Toolbar) findViewById(R.id.toolbar)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = your-name | |
email = your-email | |
[alias] | |
la = config -l | grep alias | cut -c 7- | |
cm = commit -am | |
co = checkout | |
s = status | |
b = branch -a | |
# Log display from screencast, with train tracks. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Retrofit, OkHttp, Gson | |
-keepattributes *Annotation* | |
-keepattributes Signature | |
-keep class com.squareup.okhttp.** { *; } | |
-keep interface com.squareup.okhttp.** { *; } | |
-dontwarn com.squareup.okhttp.** | |
-dontwarn rx.** | |
-dontwarn retrofit.** | |
-keep class retrofit.** { *; } | |
-keepclasseswithmembers class * { |