|
|
@@ -69,15 +69,16 @@ public class MissionActivity extends BaseActivity implements View.OnClickListene
|
|
|
@Override
|
|
|
public void onReceive(Context context, Intent intent) {
|
|
|
locationOk = MyApplication.getInstance().getBdLocationHelper().locationOk();
|
|
|
- if (locationOk && adapter != null && !ListUtils.isEmpty(adapter.getModels())) {
|
|
|
- for (int i = 0; i < adapter.getModels().size(); i++) {
|
|
|
- if (adapter.getModels().get(i).getStatus() != 1) {
|
|
|
- adapter.getModels().get(i).setRecorddate(TimeUtils.f_long_2_str(System.currentTimeMillis()));
|
|
|
- adapter.getModels().get(i).setLocation(MyApplication.getInstance().getBdLocationHelper().getName());
|
|
|
- adapter.notifyItemChanged(i);
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ //TODO 发布版本先关闭
|
|
|
+// if (locationOk && adapter != null && !ListUtils.isEmpty(adapter.getModels())) {
|
|
|
+// for (int i = 0; i < adapter.getModels().size(); i++) {
|
|
|
+// if (adapter.getModels().get(i).getStatus() != 1) {
|
|
|
+// adapter.getModels().get(i).setRecorddate(TimeUtils.f_long_2_str(System.currentTimeMillis()));
|
|
|
+// adapter.getModels().get(i).setLocation(MyApplication.getInstance().getBdLocationHelper().getName());
|
|
|
+// adapter.notifyItemChanged(i);
|
|
|
+// }
|
|
|
+// }
|
|
|
+// }
|
|
|
}
|
|
|
};
|
|
|
|
|
|
@@ -413,14 +414,11 @@ public class MissionActivity extends BaseActivity implements View.OnClickListene
|
|
|
}
|
|
|
});
|
|
|
popupWindow = new PopupWindow(contentView, w_screen, h_screen, true);
|
|
|
- popupWindow.setTouchable(true);
|
|
|
// 如果不设置PopupWindow的背景,无论是点击外部区域还是Back键都无法dismiss弹框
|
|
|
- // 我觉得这里是API的一个bug
|
|
|
popupWindow.setBackgroundDrawable(getResources().getDrawable(R.drawable.bg_main));
|
|
|
-
|
|
|
// 设置好参数之后再show
|
|
|
popupWindow.showAtLocation(contentView, Gravity.CENTER, 0, 0);
|
|
|
- setbg(0.7f);
|
|
|
+ setbg(0.4f);
|
|
|
}
|
|
|
|
|
|
private void setbg(float alpha) {
|