diff --git a/app/src/main/java/com/qhclh/ytzh/ui/Chose2timePopuWindow.java b/app/src/main/java/com/qhclh/ytzh/ui/Chose2timePopuWindow.java index 3990a38..219fbac 100644 --- a/app/src/main/java/com/qhclh/ytzh/ui/Chose2timePopuWindow.java +++ b/app/src/main/java/com/qhclh/ytzh/ui/Chose2timePopuWindow.java @@ -110,7 +110,7 @@ public class Chose2timePopuWindow extends PopupWindow { - public void showPopupWindow(View parent) { + public void showPopupWindow() { if (!this.isShowing()) { this.showAtLocation(context.getWindow().getDecorView(), Gravity.CENTER, 0, 0); } else { diff --git a/app/src/main/java/com/qhclh/ytzh/work/Hatchery/HatcheryReportActivity.java b/app/src/main/java/com/qhclh/ytzh/work/Hatchery/HatcheryReportActivity.java index 54eb62e..5378108 100644 --- a/app/src/main/java/com/qhclh/ytzh/work/Hatchery/HatcheryReportActivity.java +++ b/app/src/main/java/com/qhclh/ytzh/work/Hatchery/HatcheryReportActivity.java @@ -104,7 +104,7 @@ public class HatcheryReportActivity extends BaseActivity { switch (item.getItemId()) { case R.id.chose_time: Chose2timePopuWindow popuWindow = new Chose2timePopuWindow(HatcheryReportActivity.this); - popuWindow.showPopupWindow(ll_main); + popuWindow.showPopupWindow(); break; } diff --git a/app/src/main/res/layout/pop_chosetime.xml b/app/src/main/res/layout/pop_chosetime.xml index 1f260e1..4dc1dd4 100644 --- a/app/src/main/res/layout/pop_chosetime.xml +++ b/app/src/main/res/layout/pop_chosetime.xml @@ -2,7 +2,6 @@