|
@@ -109,6 +109,7 @@ public class ApexTrackingApplication extends Application
|
|
|
// isBackground = false;
|
|
// isBackground = false;
|
|
|
// notifyForeground();
|
|
// notifyForeground();
|
|
|
// }
|
|
// }
|
|
|
|
|
+ mCurrentActivity = activity;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -292,9 +293,6 @@ public class ApexTrackingApplication extends Application
|
|
|
public void showProgressDialog(String msg) {
|
|
public void showProgressDialog(String msg) {
|
|
|
|
|
|
|
|
if (mProgressDialog == null) {
|
|
if (mProgressDialog == null) {
|
|
|
- if (this == null) {
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
mProgressDialog = new ProgressDialog(mCurrentActivity);
|
|
mProgressDialog = new ProgressDialog(mCurrentActivity);
|
|
|
mProgressDialog.setCancelable(false);
|
|
mProgressDialog.setCancelable(false);
|
|
|
|
|
|