Пример #1
0
  @Override
  public void onResume() {
    super.onResume();
    if (Constants.isInternetAvailable(getActivity().getApplicationContext())) {

      fetchAddresses();
    } else {
      Toast.makeText(
              getActivity().getApplicationContext(), "Internet is required for this app.", 5000)
          .show();
    }
  }
Пример #2
0
  @Override
  public View onCreateView(
      LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {

    Log.d(Constants.LOG_TAG, Constants.AddressFragement);

    v = inflater.inflate(R.layout.fragment_address, container, false);

    orderType = this.getArguments().getString("orderType");
    layoutInflater = inflater;

    customActionBar();
    findViews(v);
    setViews();
    Constants.reintializeTheValues(getActivity().getApplicationContext());

    return v;
  }