|
@@ -28,6 +28,7 @@ import android.text.TextUtils;
|
|
|
import android.util.Log;
|
|
import android.util.Log;
|
|
|
|
|
|
|
|
import com.usai.redant.apexdrivers.detail.DetailActivity;
|
|
import com.usai.redant.apexdrivers.detail.DetailActivity;
|
|
|
|
|
+import com.usai.redant.apexdrivers.home.HomeFragment;
|
|
|
import com.usai.redant.apexdrivers.network.Network;
|
|
import com.usai.redant.apexdrivers.network.Network;
|
|
|
import com.usai.redant.apexdrivers.offline.OfflineHandler;
|
|
import com.usai.redant.apexdrivers.offline.OfflineHandler;
|
|
|
import com.usai.redant.apexdrivers.receiver.ApexDriverAlarmReceiver;
|
|
import com.usai.redant.apexdrivers.receiver.ApexDriverAlarmReceiver;
|
|
@@ -793,6 +794,7 @@ public class ApexDriverApplication extends Application {
|
|
|
boolean isActive = !isbackground; // 程序是否在前台
|
|
boolean isActive = !isbackground; // 程序是否在前台
|
|
|
if (isActive) {
|
|
if (isActive) {
|
|
|
// 弹窗提示
|
|
// 弹窗提示
|
|
|
|
|
+ sendBroadcast(new Intent(HomeFragment.HomeReloadBroadcastAction));
|
|
|
|
|
|
|
|
final int orderType = aps.optInt("order-type");
|
|
final int orderType = aps.optInt("order-type");
|
|
|
final String orderType2 = aps.optString("order-type2");
|
|
final String orderType2 = aps.optString("order-type2");
|
|
@@ -817,6 +819,8 @@ public class ApexDriverApplication extends Application {
|
|
|
});
|
|
});
|
|
|
builder.show();
|
|
builder.show();
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
} else {
|
|
} else {
|
|
|
// 发通知
|
|
// 发通知
|
|
|
popLocalNotification(notification);
|
|
popLocalNotification(notification);
|