@Override public void onResume() { super.onResume(); Log.d(TAG, "onResume()"); loadDiscoveryInbox(); loadThingTypes(); }
@Override public void onResume() { super.onResume(); // TODO: Not sure why this was added, but it causes massive slowdown // Discuss with bjd before uncommenting // getLoaderManager().restartLoader(0, null, this); }
@Override public void onResume() { super.onResume(); if (getActivity() != null && getActivity().getSupportLoaderManager().getLoader(LOADER_ID) != null) { getActivity().getSupportLoaderManager().restartLoader(LOADER_ID, null, this); } }
public void onResume() { super.onResume(); // 获取Activity对象 更新本个Fragment的列表,因为在Activity的onResume方法中从新获取了一遍聊天列表 MainFragmentActivity activity = (MainFragmentActivity) getActivity(); adapter.getChattingPeoples().clear(); adapter.getChattingPeoples().addAll(activity.getChattingPeople()); adapter.notifyDataSetChanged(); };
@Override public void onResume() { super.onResume(); // TODO async query Cursor c = Preferences.getRecentStatusMessages(getActivity()); mAdapter.changeCursor(c); }
@Override public void onResume() { super.onResume(); if (mActionMode != null) { iniciarModoExclusao(); atualizarTitulo(); } }
@Override public void onResume() { super.onResume(); getPreferences(); updateUnwatchedCounts(); onLoadRemainingCounter(); EventBus.getDefault().register(this); }
@Override public void onResume() { super.onResume(); getListView().setDivider(null); App.i().loadCandidateBuzzes(); lifecycle$.onNext(FragmentEvent.RESUME); }
public void onResume() { super.onResume(); Services.setContext(getActivity()); IntentFilter iff = new IntentFilter(); iff.addAction("com.treshna.hornet.serviceBroadcast"); getActivity().registerReceiver(this.mBroadcastReceiver, iff); getList(); }
@Override public void onResume() { super.onResume(); statusObserver = new AccountStatusContentObserver(mHandler); getActivity() .getContentResolver() .registerContentObserver(SipProfile.ACCOUNT_STATUS_URI, true, statusObserver); ((BaseAdapter) getListAdapter()).notifyDataSetChanged(); }
@Override public void onResume() { super.onResume(); if (needsRefresh) { refreshList(); } }
@Override public void onResume() { mScaleAnimation = new ScaleAnimation(0, 1, 0, 1); mScaleAnimation.setDuration(500); mLayoutAnimationController = new LayoutAnimationController(mScaleAnimation, 0.5f); getListView().setLayoutAnimation(mLayoutAnimationController); super.onResume(); }
@Override public void onResume() { super.onResume(); mMessageQueueHandler.post(mRefreshSessionsRunnable); getActivity() .getContentResolver() .registerContentObserver( ScheduleContract.Sessions.CONTENT_URI, true, mSessionChangesObserver); if (mCursor != null) { mCursor.requery(); } }
@Override public void onResume() { super.onResume(); SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences(getActivity()); isAutoRefresh = pref.getBoolean("auto_refresh?", true); boolean isShowcase = pref.getBoolean("show_showcase?", true); if (isFirstPage || isSingle) { if (isAutoRefresh && !isRefreshed) { if (!isShowcase) { refresh(); } } } }
@Override public void onResume() { super.onResume(); mCurrentUser = ParseUser.getCurrentUser(); mFriendsRelation = mCurrentUser.getRelation(ParseConstants.KEY_RELATION); mFriendsRelation .getQuery() .findInBackground( new FindCallback<ParseUser>() { @Override public void done(List<ParseUser> friends, ParseException e) { mFriends = friends; if (e == null) { String[] usernames = new String[mFriends.size()]; int i = 0; for (ParseUser user : mFriends) { usernames[i] = user.getUsername(); i++; } ArrayAdapter<String> adapter = new ArrayAdapter<String>( getListView().getContext(), android.R.layout.simple_list_item_1, usernames); setListAdapter(adapter); } else { Log.e(TAG, e.getMessage()); AlertDialog.Builder builder = new AlertDialog.Builder(getListView().getContext()); builder .setTitle(getString(R.string.Error_Title)) .setMessage(e.getMessage()) .setPositiveButton(android.R.string.ok, null); AlertDialog dialog = builder.create(); dialog.show(); } } }); }
@Override public void onResume() { super.onResume(); mCurrentUser = ParseUser.getCurrentUser(); mFriendRelation = mCurrentUser.getRelation(ParseConstants.KEY_FRIEND_RELATION); getActivity().setProgressBarIndeterminateVisibility(true); ParseQuery<ParseUser> query = mFriendRelation.getQuery(); query.addAscendingOrder(ParseConstants.KEY_USERNAME); query.findInBackground( new FindCallback<ParseUser>() { @Override public void done(List<ParseUser> friends, ParseException e) { getActivity().setProgressBarIndeterminateVisibility(false); if (e == null) { mFriends = friends; String[] usernames = new String[mFriends.size()]; int i = 0; for (ParseUser friend : mFriends) { usernames[i] = friend.getUsername(); i++; } // setting the adapter ArrayAdapter<String> adapter = new ArrayAdapter<String>( getListView().getContext(), android.R.layout.simple_list_item_1, usernames); setListAdapter(adapter); } else { Log.i(TAG, e.getMessage()); // Building an alert dialog AlertDialog.Builder UserBuilder = new AlertDialog.Builder(getListView().getContext()); UserBuilder.setTitle(e.getMessage()); UserBuilder.setMessage(R.string.error_title); UserBuilder.setPositiveButton(android.R.string.ok, null); UserBuilder.create(); UserBuilder.show(); } } }); }
@Override public void onResume() { super.onResume(); if (DEBUG) { Log.v(LOG_TAG, "onResume():"); } ((MainActivity) getActivity()).setActionBarTitle(getString(R.string.title_bookmark)); if (mSharedPreferences.contains(PREF_KEY_SITE_LIST)) { if (DEBUG) { Log.d(LOG_TAG, "onResume(): get the info from shared preference for debugging"); } String storedResponse = mSharedPreferences.getString(PREF_KEY_SITE_LIST, ""); parseInfo(storedResponse); } mRequestQueue = BaseApplication.getRequestQueue(); MyStringRequest strRequest = new MyStringRequest( Method.POST, Url.URL_SITE_LIST, new Listener<String>() { @Override public void onResponse(String response) { SharedPreferences.Editor editor = mSharedPreferences.edit(); editor.putString(PREF_KEY_SITE_LIST, response).commit(); parseInfo(response); } }, new ErrorListener() { public void onErrorResponse(VolleyError error) {} }); strRequest.addBodyParams("loginID", "drc"); strRequest.setTag(REQUEST_TAG); mRequestQueue.add(strRequest); AppBarLayout appBarLayout = ((MainActivity) getActivity()).getAppBarLayout(); appBarLayout.setExpanded(true, true); }
@Override public void onResume() { super.onResume(); getActivity() .registerReceiver( detailReceiver, new IntentFilter(AstridApiConstants.BROADCAST_SEND_DETAILS)); getActivity() .registerReceiver( detailReceiver, new IntentFilter(AstridApiConstants.BROADCAST_SEND_DECORATIONS)); getActivity() .registerReceiver( refreshReceiver, new IntentFilter(AstridApiConstants.BROADCAST_EVENT_REFRESH)); syncActionHelper.register(); if (Flags.checkAndClear(Flags.REFRESH)) { refresh(); } setUpBackgroundJobs(); if (!Preferences.getBoolean(WelcomeWalkthrough.KEY_SHOWED_WELCOME_LOGIN, false)) { Preferences.setBoolean(WelcomeWalkthrough.KEY_SHOWED_WELCOME_LOGIN, true); Intent showWelcomeLogin = new Intent(getActivity(), WelcomeWalkthrough.class); showWelcomeLogin.putExtra(ActFmLoginActivity.SHOW_TOAST, false); startActivity(showWelcomeLogin); return; } if (!Preferences.getBoolean(R.string.p_showed_add_task_help, false)) { showTaskCreateHelpPopover(); } else if (!Preferences.getBoolean(R.string.p_showed_tap_task_help, false)) { showTaskEditHelpPopover(); } else if (!Preferences.getBoolean(R.string.p_showed_lists_help, false)) { showListsHelp(); } refreshFilterCount(); initiateAutomaticSync(); }
@Override public void onResume() { super.onResume(); adapter.notifyDataSetChanged(); }
@Override public void onResume() { super.onResume(); mUiHelper.onResume(); }
@Override public void onResume() { super.onResume(); ((CrimeAdapter) getListAdapter()).notifyDataSetChanged(); }
@Override public void onResume() { super.onResume(); setRefreshIndicationState(updateManager.isUpdating(UpdateManager.UpdateType.ALARMS)); }
@Override public void onResume() { super.onResume(); if (cursor != null) cursor.requery(); setupControls(); }
@Override public void onResume() { super.onResume(); reloadAdapter(); }
/** * Crazy hack so that tag view fragment won't automatically initiate an autosync after a tag is * deleted. TagViewFragment has to call onResume, but we don't want it to call the normal tasklist * onResume. */ protected void parentOnResume() { super.onResume(); }
@Override public void onResume() { super.onResume(); ((MainActivity) getActivity()).setActionBarTitle(PLAYLIST_FRAGMENT_TITLE); }
@Override public void onResume() { super.onResume(); new RefreshDictionariesListTask(getActivity()); };
@Override public void onResume() { reset(); super.onResume(); }
@Override public void onResume() { super.onResume(); updateUI(); }
@Override public void onResume() { super.onResume(); Log.d("CatroidFragmentTag", "FormulaEditorVariableList onresume()"); }