private void getActiveUsers() { if (Utility.isNetworkAvailable(this)) { new GetActiveUsers().execute(); } else { SnackNotify.showSnakeBar(this, snakeOnClick, coordinatorLayout); } }
@Override protected void onResume() { super.onResume(); gamePlayStrategyActivity = this; pollsPref.ActivityRunning(true); if (Utility.isNetworkAvailable(GamePlayStrategyActivity.this)) { new GetPollData().execute(); } else { // do nothing } }