2222 * Created by threshold on 2017/1/11.
2323 */
2424
25- public abstract class AbsExampleActivity extends AppCompatActivity {
25+ public abstract class ExampleBaseActivity extends AppCompatActivity {
2626
2727 protected String TAG = getClass ().getSimpleName ();
2828 protected Button btn ;
@@ -56,22 +56,22 @@ protected <T> Observer<T> getObserver(final Object theNumberOfObserver) {
5656
5757 @ Override
5858 public void onSubscribe (Disposable d ) {
59- AbsExampleActivity .this .onSubscribe (theNumberOfObserver ,d );
59+ ExampleBaseActivity .this .onSubscribe (theNumberOfObserver ,d );
6060 }
6161
6262 @ Override
6363 public void onNext (T value ) {
64- AbsExampleActivity .this .onNext (theNumberOfObserver ,value );
64+ ExampleBaseActivity .this .onNext (theNumberOfObserver ,value );
6565 }
6666
6767 @ Override
6868 public void onError (Throwable e ) {
69- AbsExampleActivity .this .onError (theNumberOfObserver ,e );
69+ ExampleBaseActivity .this .onError (theNumberOfObserver ,e );
7070 }
7171
7272 @ Override
7373 public void onComplete () {
74- AbsExampleActivity .this .onComplete (theNumberOfObserver );
74+ ExampleBaseActivity .this .onComplete (theNumberOfObserver );
7575 }
7676 };
7777 }
@@ -84,17 +84,17 @@ protected CompletableObserver getCompletableObserver(final Object theNumberOfObs
8484 return new CompletableObserver () {
8585 @ Override
8686 public void onSubscribe (Disposable d ) {
87- AbsExampleActivity .this .onSubscribe (theNumberOfObserver , d );
87+ ExampleBaseActivity .this .onSubscribe (theNumberOfObserver , d );
8888 }
8989
9090 @ Override
9191 public void onComplete () {
92- AbsExampleActivity .this .onComplete (theNumberOfObserver );
92+ ExampleBaseActivity .this .onComplete (theNumberOfObserver );
9393 }
9494
9595 @ Override
9696 public void onError (Throwable e ) {
97- AbsExampleActivity .this .onError (theNumberOfObserver , e );
97+ ExampleBaseActivity .this .onError (theNumberOfObserver , e );
9898 }
9999 };
100100 }
@@ -107,17 +107,17 @@ protected <T> DisposableObserver<T> getDisposableObserver(final Object theNumber
107107 return new DisposableObserver <T >() {
108108 @ Override
109109 public void onNext (T t ) {
110- AbsExampleActivity .this .onNext (theNumberOfObserver , t );
110+ ExampleBaseActivity .this .onNext (theNumberOfObserver , t );
111111 }
112112
113113 @ Override
114114 public void onError (Throwable e ) {
115- AbsExampleActivity .this .onError (theNumberOfObserver , e );
115+ ExampleBaseActivity .this .onError (theNumberOfObserver , e );
116116 }
117117
118118 @ Override
119119 public void onComplete () {
120- AbsExampleActivity .this .onComplete (theNumberOfObserver );
120+ ExampleBaseActivity .this .onComplete (theNumberOfObserver );
121121 }
122122 };
123123 }
@@ -130,17 +130,17 @@ protected <T> SingleObserver<T> getSingleObserver(final Object theNumberOfObserv
130130 return new SingleObserver <T >() {
131131 @ Override
132132 public void onSubscribe (Disposable d ) {
133- AbsExampleActivity .this .onSubscribe (theNumberOfObserver , d );
133+ ExampleBaseActivity .this .onSubscribe (theNumberOfObserver , d );
134134 }
135135
136136 @ Override
137137 public void onSuccess (T t ) {
138- AbsExampleActivity .this .onNext (theNumberOfObserver , t );
138+ ExampleBaseActivity .this .onNext (theNumberOfObserver , t );
139139 }
140140
141141 @ Override
142142 public void onError (Throwable e ) {
143- AbsExampleActivity .this .onError (theNumberOfObserver , e );
143+ ExampleBaseActivity .this .onError (theNumberOfObserver , e );
144144 }
145145 };
146146 }
@@ -153,22 +153,22 @@ protected <T> MaybeObserver<T> getMaybeObserver(final Object theNumberOfObserver
153153 return new MaybeObserver <T >() {
154154 @ Override
155155 public void onSubscribe (Disposable d ) {
156- AbsExampleActivity .this .onSubscribe (theNumberOfObserver , d );
156+ ExampleBaseActivity .this .onSubscribe (theNumberOfObserver , d );
157157 }
158158
159159 @ Override
160160 public void onSuccess (T t ) {
161- AbsExampleActivity .this .onSuccess (theNumberOfObserver , t );
161+ ExampleBaseActivity .this .onSuccess (theNumberOfObserver , t );
162162 }
163163
164164 @ Override
165165 public void onError (Throwable e ) {
166- AbsExampleActivity .this .onError (theNumberOfObserver , e );
166+ ExampleBaseActivity .this .onError (theNumberOfObserver , e );
167167 }
168168
169169 @ Override
170170 public void onComplete () {
171- AbsExampleActivity .this .onComplete (theNumberOfObserver );
171+ ExampleBaseActivity .this .onComplete (theNumberOfObserver );
172172 }
173173 };
174174 }
0 commit comments