package com.joker.fourfun.ui.fragment;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.joker.fourfun.R;
import com.joker.fourfun.base.BaseMvpFragment;
import com.joker.fourfun.presenter.MinePresenter;
import com.joker.fourfun.presenter.contract.MineContract;

import butterknife.ButterKnife;

public class MineFragment extends BaseMvpFragment<MineContract.View, MinePresenter> implements
        MineContract.View {

    @Override
    protected View createView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_mine, container, false);
        ButterKnife.bind(this, view);

        return view;
    }

    @Override
    protected void initInject() {
        getComponent().inject(this);
    }

    @Override
    public void showError(String message) {

    }
}

@@ -151,16 +151,48 @@
 ewGroup;
+%0Aimport android.widget.TextView;
 %0A%0Aimport
@@ -365,24 +365,53 @@
 eContract;%0A%0A
+import butterknife.BindView;%0A
 import butte
@@ -429,16 +429,44 @@
 erKnife;
+%0Aimport butterknife.OnClick;
 %0A%0Apublic
@@ -579,24 +579,278 @@
 act.View %7B%0A%0A
+    public boolean isNight = true;%0A    @BindView(R.id.tv_collect)%0A    TextView mTvCollect;%0A    @BindView(R.id.tv_browse)%0A    TextView mTvBrowse;%0A    @BindView(R.id.tv_setting)%0A    TextView mTvSetting;%0A    @BindView(R.id.tv_night)%0A    TextView mTvNight;%0A%0A
     @Overrid
@@ -1259,11 +1259,715 @@
 %7B%0A%0A    %7D
+%0A%0A    @OnClick(%7BR.id.tv_collect, R.id.tv_browse, R.id.tv_setting, R.id.tv_night%7D)%0A    public void onClick(View view) %7B%0A        switch (view.getId()) %7B%0A            case R.id.tv_collect:%0A                break;%0A            case R.id.tv_browse:%0A                break;%0A            case R.id.tv_setting:%0A                break;%0A            case R.id.tv_night:%0A//                if (isNight) %7B%0A//                    ThemeModeContext.getInstance().setState(new DayState());%0A//                %7D else %7B%0A//                    ThemeModeContext.getInstance().setState(new NightState());%0A//                %7D%0A//                ThemeModeContext.getInstance().setAppTheme(mActivity);%0A                break;%0A        %7D%0A    %7D
 %0A%7D%0A

add mode