// Path: app/src/main/java/me/yifeiyuan/climb/ui/widget/ToastUtil.java
// public class ToastUtil {
// 
//     private static Toast sToast ;
// 
//     public static void show(@NonNull Context cxt,@NonNull CharSequence content) {
//         if (null == sToast) {
//             sToast = Toast.makeText(cxt.getApplicationContext(), content, Toast.LENGTH_SHORT);
//         }
//         sToast.setText(content);
//         sToast.show();
//     }
// }


import android.content.Context;
import me.yifeiyuan.climb.ui.widget.ToastUtil;
/*
 * Copyright (C) 2015, 程序亦非猿
 *
 * 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
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package me.yifeiyuan.climb.base;



/**
 * Created by 程序亦非猿 on 16/7/14.
 */
public class CxtSubscriber<T> extends BaseSubscriber<T>{

    protected Context mContext;
    public CxtSubscriber(Context cxt) {
        mContext = cxt;
    }

    @Override
    public void onError(Throwable e) {
// Path: app/src/main/java/me/yifeiyuan/climb/ui/widget/ToastUtil.java
// public class ToastUtil {
// 
//     private static Toast sToast ;
// 
//     public static void show(@NonNull Context cxt,@NonNull CharSequence content) {
//         if (null == sToast) {
//             sToast = Toast.makeText(cxt.getApplicationContext(), content, Toast.LENGTH_SHORT);
//         }
//         sToast.setText(content);
//         sToast.show();
//     }
// }


// Path: app/src/main/java/me/yifeiyuan/climb/base/CxtSubscriber.java
import android.content.Context;
import me.yifeiyuan.climb.ui.widget.ToastUtil;

/*
 * Copyright (C) 2015, 程序亦非猿
 *
 * 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
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package me.yifeiyuan.climb.base;



/**
 * Created by 程序亦非猿 on 16/7/14.
 */
public class CxtSubscriber<T> extends BaseSubscriber<T>{

    protected Context mContext;
    public CxtSubscriber(Context cxt) {
        mContext = cxt;
    }

    @Override
    public void onError(Throwable e) {
        ToastUtil.show(mContext,e.getMessage());