Skip to content

Instantly share code, notes, and snippets.

@Scope
@Retention(AnnotationRetention.RUNTIME)
annotation class ActivityScope
@fkruege
fkruege / 01.java
Last active March 13, 2016 02:04
PDF Renderer
public Bitmap getBitmap(int position) {
int index = getIndexFromPosition(position);
if (mBitmapArray[index] == null) {
createBitmapAtIndex(index);
}
mBitmapArray[index].eraseColor(Color.TRANSPARENT);
return mBitmapArray[index];
}
@fkruege
fkruege / 01.java
Last active February 14, 2016 21:02
RxJavaSubjectsAndZip Gists
private Subject<Boolean, Boolean> mFragmentSubject1 = PublishSubject.create();
private Subject<Boolean, Boolean> mFragmentSubject2 = PublishSubject.create();
private Subject<Boolean, Boolean> mFragmentSubject3 = PublishSubject.create();