This file contains hidden or 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
| private Location bestLocation = null; | |
| private Looper looper; | |
| private boolean networkEnabled = false, gpsEnabled = false; | |
| private synchronized void setLooper(Looper looper) { | |
| this.looper = looper; | |
| } | |
| private synchronized void stopLooper() { | |
| if (looper == null) return; |
This file contains hidden or 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
| import android.app.Service; | |
| import android.content.ComponentName; | |
| import android.content.Context; | |
| import android.content.Intent; | |
| import android.content.ServiceConnection; | |
| import android.os.Binder; | |
| import android.os.IBinder; | |
| import io.reactivex.Observable; |
This file contains hidden or 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
| import android.content.Context; | |
| import android.graphics.Bitmap; | |
| import android.graphics.Canvas; | |
| import android.graphics.Color; | |
| import android.graphics.LinearGradient; | |
| import android.graphics.Matrix; | |
| import android.graphics.Paint; | |
| import android.graphics.Shader; | |
| import com.google.android.gms.maps.model.LatLng; |
This file contains hidden or 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 BaseRecyclerAdapter<T, MVH extends BaseViewHolder<T>, EVH extends BaseViewHolder<T>> extends RecyclerView.Adapter<BaseViewHolder<T>> { | |
| private static final int VIEW_TYPE_EMPTY = 0; | |
| private static final int VIEW_TYPE_DATA = 1; | |
| private List<T> list = new ArrayList<>(); | |
| @LayoutRes | |
| private int emptyViewLayoutResource; | |
| private Class<EVH> emptyViewHolder; | |
| @LayoutRes | |
| private int dataLayoutResource; |