Skip to content

Instantly share code, notes, and snippets.

package com.mauricegavin.core.ui.viewModels;
import android.support.annotation.NonNull;
import com.mauricegavin.core.ui.activities.ActivityResult;
import com.mauricegavin.core.ui.displayModel.ActivityDisplayModel;
import com.mauricegavin.core.ui.presenter.BasePresenterInput;
import rx.Observable;
import rx.subjects.PublishSubject;
@mauricegavin
mauricegavin / build.gradle
Last active February 22, 2019 17:21
Using Checkstyle's maxErrors with Gradle
task checkstyle(type: Checkstyle) {
configFile rootProject.file('checkstyle.xml')
configFile file("${project.rootDir}/code_quality_tools/checkstyle.xml")
ignoreFailures true // Uncomment to fail where warnings > 0
showViolations true
source 'src'
include '**/*.java''
@mauricegavin
mauricegavin / ObservableRxList.java
Created February 29, 2016 18:15
ObservableRxList
import java.util.ArrayList;
import java.util.List;
import java.util.ListIterator;
import rx.Observable;
import rx.subjects.PublishSubject;
/**
* http://stackoverflow.com/questions/28816691/how-can-i-create-an-observer-over-a-dynamic-list-in-rxjava
*/
@mauricegavin
mauricegavin / FragmentTemplate.java
Created September 2, 2015 13:40
A template starting point for a standard Fragment
public class ReportListFragment extends Fragment {
//region Lifecycle methods
public static ReportListFragment newInstance(String userId) {
ReportListFragment fragment = new ReportListFragment();
Bundle args = new Bundle();
args.putString(Constants.USER_ID, userId);