| | |
| | | import androidx.loader.content.CursorLoader; |
| | | import androidx.loader.content.Loader; |
| | | |
| | | import android.util.Log; |
| | | import android.view.LayoutInflater; |
| | | import android.view.View; |
| | | import android.view.View.OnClickListener; |
| | |
| | | import com.weikou.beibeivideo.ui.login.LoginActivity; |
| | | import com.weikou.beibeivideo.ui.login.PersonInfoActivity; |
| | | import com.weikou.beibeivideo.ui.mine.BrowserActivity; |
| | | import com.weikou.beibeivideo.ui.mine.GoldCornActivity; |
| | | import com.weikou.beibeivideo.ui.mine.HelpAndTicklingActivity; |
| | | import com.weikou.beibeivideo.ui.mine.MyFavouriteActivity; |
| | | import com.weikou.beibeivideo.ui.mine.SettingsActivity; |
| | |
| | | */ |
| | | public class MineFragment extends MyRetainViewFragment implements |
| | | OnClickListener, LoaderManager.LoaderCallbacks<Cursor> { |
| | | |
| | | private final String TAG="MineFragment"; |
| | | |
| | | |
| | | public MineFragment() { |
| | |
| | | |
| | | |
| | | contentView.findViewById(R.id.mine_rl_head).setOnClickListener(this); |
| | | |
| | | contentView.findViewById(R.id.tv_goldcorn).setOnClickListener(this); |
| | | |
| | | ll_mine_favourite.setOnClickListener(this); |
| | | ll_mine_follow.setOnClickListener(this); |
| | | ll_mine_watch_history.setOnClickListener(this); |
| | |
| | | // break; |
| | | case R.id.ll_mine_follow: |
| | | startActivity(new Intent(tv_no_network.getContext(), FollowActivity.class)); |
| | | break; |
| | | |
| | | //影视豆 |
| | | case R.id.tv_goldcorn: |
| | | startActivity(new Intent(tv_no_network.getContext(), GoldCornActivity.class)); |
| | | break; |
| | | |
| | | //书架 |
| | |
| | | @Override |
| | | public void onResume() { |
| | | super.onResume(); |
| | | Log.i(TAG,"onResume"); |
| | | // 获取缓存中的消息状态 |
| | | SharedPreferences preferences = tv_no_network.getContext().getSharedPreferences( |
| | | "user", Context.MODE_PRIVATE); |
| | |
| | | |
| | | @Override |
| | | public void onPause() { |
| | | Log.i(TAG,"onPause"); |
| | | super.onPause(); |
| | | mChangeHelper.unregisterReceiver(); |
| | | } |