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
| #if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end | |
| import android.content.Context; | |
| import android.support.v7.widget.RecyclerView; | |
| import android.view.LayoutInflater; | |
| import android.view.View; | |
| import android.view.ViewGroup; | |
| import java.util.List; | |
| #parse("File Header.java") |
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
| package com.smartdengg.model.repository.interceptor; | |
| import android.support.annotation.NonNull; | |
| import android.util.Log; | |
| import com.smartdengg.common.Constants; | |
| import java.io.IOException; | |
| import java.nio.charset.Charset; | |
| import java.util.concurrent.TimeUnit; | |
| import okhttp3.Connection; | |
| import okhttp3.Headers; |
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.media.MediaRecorder; | |
| import android.support.annotation.NonNull; | |
| import com.f2prateek.rx.android.schedulers.AndroidSchedulers; | |
| import java.io.File; | |
| import java.io.IOException; | |
| import java.util.concurrent.TimeUnit; | |
| import rx.Observable; | |
| import rx.subscriptions.Subscriptions; | |
| public class RxMediaRecorder { |
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.media.AudioManager; | |
| import android.media.MediaPlayer; | |
| import android.util.Pair; | |
| import org.jetbrains.annotations.NotNull; | |
| import java.io.File; | |
| import java.io.IOException; | |
| import java.util.concurrent.TimeUnit; | |
| import rx.Observable; | |
| import rx.subscriptions.Subscriptions; |
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
| package com.smartdengg.smartgallery.activity; | |
| import android.content.Intent; | |
| import android.database.Cursor; | |
| import android.os.Bundle; | |
| import android.provider.MediaStore; | |
| import android.support.annotation.NonNull; | |
| import android.support.annotation.Nullable; | |
| import android.support.v7.app.AppCompatActivity; | |
| import android.support.v7.widget.RecyclerView; |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN" "http://www.puppycrawl.com/dtds/configuration_1_2.dtd"> | |
| <!-- Generated by RHY @will_awoke --> | |
| <module name="Checker"> | |
| <property name="charset" value="UTF-8"/> | |
| <property name="severity" value="warning"/> |
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
| /** | |
| * @param interval The base interval to start backing off from. The function is: attemptNum^2 * intervalTime | |
| * @param units The units for interval | |
| * @param retryAttempts The max number of attempts to retry this task or -1 to try MAX_INT times, | |
| */ | |
| public static <T> Observable.Transformer<T, T> backoff(final long interval, final TimeUnit units, final int retryAttempts) { | |
| return new Observable.Transformer<T, T>() { | |
| @Override | |
| public Observable<T> call(final Observable<T> observable) { | |
| return observable.retryWhen( |
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
| /* | |
| * Copyright (C) 2014 darnmason | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
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 rx.Observable; | |
| import rx.subjects.PublishSubject; | |
| import rx.subjects.SerializedSubject; | |
| import rx.subjects.Subject; | |
| /** | |
| * Simple pass-thru event bus with error handling and reconnect. | |
| */ | |
| public class EventBus { |