| Line 4... |
Line 4... |
| 4 |
import android.content.Context;
|
4 |
import android.content.Context;
|
| 5 |
import android.content.Intent;
|
5 |
import android.content.Intent;
|
| 6 |
import android.content.SharedPreferences;
|
6 |
import android.content.SharedPreferences;
|
| 7 |
import android.net.ConnectivityManager;
|
7 |
import android.net.ConnectivityManager;
|
| 8 |
import android.os.Bundle;
|
8 |
import android.os.Bundle;
|
| - |
|
9 |
import android.support.v7.app.ActionBar;
|
| - |
|
10 |
import android.support.v7.app.AppCompatActivity;
|
| 9 |
import android.text.TextUtils;
|
11 |
import android.text.TextUtils;
|
| 10 |
import android.util.Log;
|
12 |
import android.util.Log;
|
| 11 |
import android.view.KeyEvent;
|
13 |
import android.view.KeyEvent;
|
| 12 |
import android.view.LayoutInflater;
|
14 |
import android.view.LayoutInflater;
|
| 13 |
import android.view.View;
|
15 |
import android.view.View;
|
| Line 39... |
Line 41... |
| 39 |
|
41 |
|
| 40 |
userData = getActivity().getSharedPreferences("User_Data", Context.MODE_PRIVATE);
|
42 |
userData = getActivity().getSharedPreferences("User_Data", Context.MODE_PRIVATE);
|
| 41 |
apiData = getActivity().getSharedPreferences("API_Data", Context.MODE_PRIVATE);
|
43 |
apiData = getActivity().getSharedPreferences("API_Data", Context.MODE_PRIVATE);
|
| 42 |
userDataEditor = userData.edit();
|
44 |
userDataEditor = userData.edit();
|
| 43 |
apiSettingsEditor = apiData.edit();
|
45 |
apiSettingsEditor = apiData.edit();
|
| - |
|
46 |
AppCompatActivity activity = (AppCompatActivity) getActivity();
|
| - |
|
47 |
ActionBar actionBar = activity.getSupportActionBar();
|
| - |
|
48 |
actionBar.hide();
|
| 44 |
retry = (Button)rootView.findViewById(R.id.checkInternet);
|
49 |
retry = (Button)rootView.findViewById(R.id.checkInternet);
|
| 45 |
finalURL=getArguments().getString("finishingurl");
|
50 |
finalURL=getArguments().getString("finishingurl");
|
| 46 |
Log.d("Finish Url","Finish Url" + finalURL);
|
51 |
Log.d("Finish Url","Finish Url" + finalURL);
|
| 47 |
List<String> snapdealExceptionUrls = new ArrayList<>();
|
52 |
List<String> snapdealExceptionUrls = new ArrayList<>();
|
| 48 |
StringTokenizer st = new StringTokenizer(apiData.getString("exception.urls.redirect",""),"|");
|
53 |
StringTokenizer st = new StringTokenizer(apiData.getString("exception.urls.redirect",""),"|");
|
| Line 68... |
Line 73... |
| 68 |
MyProfile myProfile = new MyProfile();
|
73 |
MyProfile myProfile = new MyProfile();
|
| 69 |
getActivity().getFragmentManager().beginTransaction()
|
74 |
getActivity().getFragmentManager().beginTransaction()
|
| 70 |
.replace(R.id.frame_container, myProfile, "Mike")
|
75 |
.replace(R.id.frame_container, myProfile, "Mike")
|
| 71 |
.addToBackStack(null)
|
76 |
.addToBackStack(null)
|
| 72 |
.commit();
|
77 |
.commit();
|
| - |
|
78 |
} else*/
|
| 73 |
} else*/ if ((!TextUtils.isEmpty(finalURL) || finalURL != null) && fragmentNumber.equalsIgnoreCase("1")) {
|
79 |
if ((!TextUtils.isEmpty(finalURL) || finalURL != null) && fragmentNumber.equalsIgnoreCase("1")) {
|
| 74 |
DealsHomeFragment nextFrag = new DealsHomeFragment();
|
80 |
DealsHomeFragment nextFrag = new DealsHomeFragment();
|
| 75 |
Bundle args = new Bundle();
|
81 |
Bundle args = new Bundle();
|
| 76 |
args.putString("key", finalURL);
|
82 |
args.putString("key", finalURL);
|
| 77 |
nextFrag.setArguments(args);
|
83 |
nextFrag.setArguments(args);
|
| 78 |
getActivity().getFragmentManager().beginTransaction()
|
84 |
getActivity().getFragmentManager().beginTransaction()
|
| Line 115... |
Line 121... |
| 115 |
.replace(R.id.frame_container, myWallet)
|
121 |
.replace(R.id.frame_container, myWallet)
|
| 116 |
.addToBackStack(null)
|
122 |
.addToBackStack(null)
|
| 117 |
.commit();
|
123 |
.commit();
|
| 118 |
}
|
124 |
}
|
| 119 |
else if ((!TextUtils.isEmpty(finalURL) || finalURL != null) && fragmentNumber.equalsIgnoreCase("16")) {
|
125 |
else if ((!TextUtils.isEmpty(finalURL) || finalURL != null) && fragmentNumber.equalsIgnoreCase("16")) {
|
| 120 |
;
|
- |
|
| - |
|
126 |
|
| 121 |
/* Bundle args = new Bundle();
|
127 |
Bundle args = new Bundle();
|
| 122 |
args.putString("key", finalURL);
|
128 |
args.putString("key", finalURL);
|
| 123 |
myWallet.setArguments(args);
|
129 |
myWallet.setArguments(args);
|
| 124 |
getActivity().getFragmentManager().beginTransaction()
|
130 |
getActivity().getFragmentManager().beginTransaction()
|
| 125 |
.replace(R.id.frame_container, aboutUs)
|
131 |
.replace(R.id.frame_container, aboutUs)
|
| 126 |
.addToBackStack(null)
|
132 |
.addToBackStack(null)
|