GeezerVison is showing github.com — chore: mass reformat of code · offbye/RxJava-Android-Samples@1f593cd
File treeExpand file treeCollapse file tree Open diff view settings java/com/morihacky/android/rxjava
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboard +9-6Lines changed: 9 additions & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | <?xml version="1.0" encoding="utf-8"?> | 2 | 2 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" | 3 | | - package="com.morihacky.android.rxjava" > | | 3 | + package="com.morihacky.android.rxjava" | | 4 | + > | 4 | 5 |
| 5 | 6 | <application | 6 | 7 | android:name=".MyApp" | 7 | 8 | android:allowBackup="true" | 8 | 9 | android:icon="@drawable/ic_launcher" | 9 | 10 | android:label="@string/app_name" | 10 | | - android:theme="@style/AppTheme" > | | 11 | + android:theme="@style/AppTheme" | | 12 | + > | 11 | 13 | <activity | 12 | 14 | android:name="com.morihacky.android.rxjava.MainActivity" | 13 | | - android:label="@string/app_name" > | | 15 | + android:label="@string/app_name" | | 16 | + > | 14 | 17 | <intent-filter> | 15 | | - <action android:name="android.intent.action.MAIN" /> | | 18 | + <action android:name="android.intent.action.MAIN"/> | 16 | 19 |
| 17 | | - <category android:name="android.intent.category.LAUNCHER" /> | | 20 | + <category android:name="android.intent.category.LAUNCHER"/> | 18 | 21 | </intent-filter> | 19 | 22 | </activity> | 20 | 23 | </application> | 21 | | - <uses-permission android:name="android.permission.INTERNET" /> | | 24 | + <uses-permission android:name="android.permission.INTERNET"/> | 22 | 25 |
| 23 | 26 | </manifest> |
Collapse file Copy file name to clipboardExpand all lines: app/src/main/java/com/morihacky/android/rxjava/fragments/BufferDemoFragment.java +5-7Lines changed: 5 additions & 7 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 9 | 9 | import android.view.ViewGroup; | 10 | 10 | import android.widget.Button; | 11 | 11 | import android.widget.ListView; | 12 | | - | | 12 | +import butterknife.ButterKnife; | | 13 | +import butterknife.InjectView; | 13 | 14 | import com.jakewharton.rxbinding.view.RxView; | 14 | 15 | import com.jakewharton.rxbinding.view.ViewClickEvent; | 15 | | -import com.morihacky.android.rxjava.wiring.LogAdapter; | 16 | 16 | import com.morihacky.android.rxjava.R; | 17 | | - | | 17 | +import com.morihacky.android.rxjava.wiring.LogAdapter; | 18 | 18 | import java.util.ArrayList; | 19 | 19 | import java.util.List; | 20 | 20 | import java.util.concurrent.TimeUnit; | 21 | | - | 22 | | -import butterknife.ButterKnife; | 23 | | -import butterknife.InjectView; | 24 | 21 | import rx.Observer; | 25 | 22 | import rx.Subscription; | 26 | 23 | import rx.android.schedulers.AndroidSchedulers; | @@ -85,7 +82,8 @@ public View onCreateView(LayoutInflater inflater, | 85 | 82 | private Subscription _getBufferedSubscription() { | 86 | 83 | return RxView.clickEvents(_tapBtn) | 87 | 84 | .map(new Func1<ViewClickEvent, Integer>() { | 88 | | - @Override public Integer call(ViewClickEvent onClickEvent) { | | 85 | + @Override | | 86 | + public Integer call(ViewClickEvent onClickEvent) { | 89 | 87 | Timber.d("--------- GOT A TAP"); | 90 | 88 | _log("GOT A TAP"); | 91 | 89 | return 1; | |
Collapse file Copy file name to clipboardExpand all lines: app/src/main/java/com/morihacky/android/rxjava/fragments/ConcurrencyWithSchedulersDemoFragment.java +1-2Lines changed: 1 addition & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 14 | 14 | import butterknife.ButterKnife; | 15 | 15 | import butterknife.InjectView; | 16 | 16 | import butterknife.OnClick; | | 17 | +import com.morihacky.android.rxjava.R; | 17 | 18 | import java.util.ArrayList; | 18 | 19 | import java.util.List; | 19 | | - | 20 | | -import com.morihacky.android.rxjava.R; | 21 | 20 | import rx.Observable; | 22 | 21 | import rx.Observer; | 23 | 22 | import rx.Subscription; | |
Collapse file Copy file name to clipboardExpand all lines: app/src/main/java/com/morihacky/android/rxjava/fragments/DebounceSearchEmitterFragment.java +1-3Lines changed: 1 addition & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 16 | 16 | import butterknife.OnClick; | 17 | 17 | import com.jakewharton.rxbinding.widget.RxTextView; | 18 | 18 | import com.jakewharton.rxbinding.widget.TextViewTextChangeEvent; | | 19 | +import com.morihacky.android.rxjava.R; | 19 | 20 | import java.util.ArrayList; | 20 | 21 | import java.util.List; | 21 | 22 | import java.util.concurrent.TimeUnit; | 22 | | - | 23 | | -import com.morihacky.android.rxjava.R; | 24 | | -import rx.Observable; | 25 | 23 | import rx.Observer; | 26 | 24 | import rx.Subscription; | 27 | 25 | import rx.android.schedulers.AndroidSchedulers; | |
Collapse file Copy file name to clipboardExpand all lines: app/src/main/java/com/morihacky/android/rxjava/fragments/DoubleBindingTextViewFragment.java -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 7 | 7 | import android.view.ViewGroup; | 8 | 8 | import android.widget.EditText; | 9 | 9 | import android.widget.TextView; | 10 | | - | 11 | 10 | import butterknife.ButterKnife; | 12 | 11 | import butterknife.InjectView; | 13 | 12 | import butterknife.OnTextChanged; | |
Collapse file Copy file name to clipboardExpand all lines: app/src/main/java/com/morihacky/android/rxjava/fragments/MainFragment.java +9-6Lines changed: 9 additions & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 12 | 12 | import com.morihacky.android.rxjava.R; | 13 | 13 | import com.morihacky.android.rxjava.rxbus.RxBusDemoFragment; | 14 | 14 |
| 15 | | -public class MainFragment extends BaseFragment { | | 15 | +public class MainFragment | | 16 | + extends BaseFragment { | 16 | 17 |
| 17 | 18 | @Override | 18 | | - public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { | | 19 | + public View onCreateView(LayoutInflater inflater, | | 20 | + @Nullable ViewGroup container, | | 21 | + @Nullable Bundle savedInstanceState) { | 19 | 22 | View layout = inflater.inflate(R.layout.fragment_main, container, false); | 20 | 23 | ButterKnife.inject(this, layout); | 21 | 24 | return layout; | @@ -79,9 +82,9 @@ void demoRotationPersist() { | 79 | 82 | private void clickedOn(@NonNull Fragment fragment) { | 80 | 83 | final String tag = fragment.getClass().toString(); | 81 | 84 | getActivity().getSupportFragmentManager() | 82 | | - .beginTransaction() | 83 | | - .addToBackStack(tag) | 84 | | - .replace(android.R.id.content, fragment, tag) | 85 | | - .commit(); | | 85 | + .beginTransaction() | | 86 | + .addToBackStack(tag) | | 87 | + .replace(android.R.id.content, fragment, tag) | | 88 | + .commit(); | 86 | 89 | } | 87 | 90 | } |
Collapse file Copy file name to clipboardExpand all lines: app/src/main/java/com/morihacky/android/rxjava/fragments/PseudoCacheConcatFragment.java +3-6Lines changed: 3 additions & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 8 | 8 | import android.view.ViewGroup; | 9 | 9 | import android.widget.ArrayAdapter; | 10 | 10 | import android.widget.ListView; | 11 | | - | | 11 | +import butterknife.ButterKnife; | | 12 | +import butterknife.InjectView; | | 13 | +import butterknife.OnClick; | 12 | 14 | import com.morihacky.android.rxjava.retrofit.Contributor; | 13 | 15 | import com.morihacky.android.rxjava.retrofit.GithubApi; | 14 | | - | 15 | 16 | import java.util.ArrayList; | 16 | 17 | import java.util.HashMap; | 17 | 18 | import java.util.List; | 18 | | - | 19 | | -import butterknife.ButterKnife; | 20 | | -import butterknife.InjectView; | 21 | | -import butterknife.OnClick; | 22 | 19 | import retrofit.RequestInterceptor; | 23 | 20 | import retrofit.RestAdapter; | 24 | 21 | import rx.Observable; | |
Collapse file Copy file name to clipboardExpand all lines: app/src/main/java/com/morihacky/android/rxjava/fragments/PseudoCacheMergeFragment.java +3-6Lines changed: 3 additions & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 8 | 8 | import android.view.ViewGroup; | 9 | 9 | import android.widget.ArrayAdapter; | 10 | 10 | import android.widget.ListView; | 11 | | - | | 11 | +import butterknife.ButterKnife; | | 12 | +import butterknife.InjectView; | | 13 | +import butterknife.OnClick; | 12 | 14 | import com.morihacky.android.rxjava.R; | 13 | 15 | import com.morihacky.android.rxjava.retrofit.Contributor; | 14 | 16 | import com.morihacky.android.rxjava.retrofit.GithubApi; | 15 | | - | 16 | 17 | import java.util.ArrayList; | 17 | 18 | import java.util.HashMap; | 18 | 19 | import java.util.List; | 19 | | - | 20 | | -import butterknife.ButterKnife; | 21 | | -import butterknife.InjectView; | 22 | | -import butterknife.OnClick; | 23 | 20 | import retrofit.RequestInterceptor; | 24 | 21 | import retrofit.RestAdapter; | 25 | 22 | import rx.Observable; | |
Collapse file Copy file name to clipboardExpand all lines: app/src/main/java/com/morihacky/android/rxjava/fragments/RetrofitAsyncTaskDeathFragment.java +3-7Lines changed: 3 additions & 7 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 4 | 4 | import android.os.Bundle; | 5 | 5 | import android.support.annotation.Nullable; | 6 | 6 | import android.support.v4.app.Fragment; | 7 | | -import android.text.TextUtils; | 8 | 7 | import android.view.LayoutInflater; | 9 | 8 | import android.view.View; | 10 | 9 | import android.view.ViewGroup; | 11 | 10 | import android.widget.ArrayAdapter; | 12 | 11 | import android.widget.EditText; | 13 | 12 | import android.widget.ListView; | 14 | | - | | 13 | +import butterknife.ButterKnife; | | 14 | +import butterknife.InjectView; | | 15 | +import butterknife.OnClick; | 15 | 16 | import com.morihacky.android.rxjava.R; | 16 | 17 | import com.morihacky.android.rxjava.retrofit.GithubApi; | 17 | 18 | import com.morihacky.android.rxjava.retrofit.User; | 18 | | - | 19 | 19 | import java.util.ArrayList; | 20 | | - | 21 | | -import butterknife.ButterKnife; | 22 | | -import butterknife.InjectView; | 23 | | -import butterknife.OnClick; | 24 | 20 | import retrofit.RequestInterceptor; | 25 | 21 | import retrofit.RestAdapter; | 26 | 22 | import rx.Observer; | |
Collapse file Copy file name to clipboardExpand all lines: app/src/main/java/com/morihacky/android/rxjava/fragments/RetrofitFragment.java +3-6Lines changed: 3 additions & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 10 | 10 | import android.widget.ArrayAdapter; | 11 | 11 | import android.widget.EditText; | 12 | 12 | import android.widget.ListView; | 13 | | - | | 13 | +import butterknife.ButterKnife; | | 14 | +import butterknife.InjectView; | | 15 | +import butterknife.OnClick; | 14 | 16 | import com.morihacky.android.rxjava.R; | 15 | 17 | import com.morihacky.android.rxjava.RxUtils; | 16 | 18 | import com.morihacky.android.rxjava.retrofit.Contributor; | 17 | 19 | import com.morihacky.android.rxjava.retrofit.GithubApi; | 18 | 20 | import com.morihacky.android.rxjava.retrofit.User; | 19 | | - | 20 | 21 | import java.util.ArrayList; | 21 | 22 | import java.util.List; | 22 | | - | 23 | | -import butterknife.ButterKnife; | 24 | | -import butterknife.InjectView; | 25 | | -import butterknife.OnClick; | 26 | 23 | import retrofit.RequestInterceptor; | 27 | 24 | import retrofit.RestAdapter; | 28 | 25 | import rx.Observable; | |
|