@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // SharedPreferences hotelInfo = // Handler_SharedPreferences.ReadSharedPreferences(getContext(), "hotelInfo"); // String hotelCode = hotelInfo.getString("hotelCode", ""); // String hotelName = hotelInfo.getString("hotelName", ""); // Log.d("TAGTAGTAG", "hotelCode = " + hotelCode); // Log.d("TAGTAGTAG", "hotelName = " + hotelName); }
@Override public void onDestroy() { Ioc.getIoc().getLogger().d("销毁fragment"); dismissDialog(); if (null != countDownTimer) { countDownTimer.cancel(); countDownTimer.onFinish(); countDownTimer = null; Ioc.getIoc().getLogger().d("清除计时器"); } super.onDestroy(); }
@Override public void setUserVisibleHint(boolean isVisibleToUser) { super.setUserVisibleHint(isVisibleToUser); if (isVisibleToUser) { // fragment可见时执行加载数据或者进度条等 if (group == null) { group = new ArrayList<>(); } ajaxOrder(); } else { // 不可见时不执行操作 } }
@Override public void onResume() { super.onResume(); // initNoPayExpandableListView(); }
@Override public void onDestroy() { super.onDestroy(); gallery_hotel.destroy(); MapVo.remove("conditions"); }
@Override public void onResume() { super.onResume(); }