diff --git a/app/src/main/java/com/example/citrusclient/views/MainActivity.java b/app/src/main/java/com/example/citrusclient/views/MainActivity.java index 4f26114..1bb40b4 100644 --- a/app/src/main/java/com/example/citrusclient/views/MainActivity.java +++ b/app/src/main/java/com/example/citrusclient/views/MainActivity.java @@ -21,6 +21,7 @@ import com.google.android.material.navigation.NavigationBarView; import java.util.ArrayList; +import java.util.Calendar; import java.util.HashMap; import java.util.List; @@ -42,6 +43,11 @@ citrus = (Citrus) getApplication(); + Calendar calendar = Calendar.getInstance(); + citrus.setCurYear(calendar.get(Calendar.YEAR)); + citrus.setCurMonth(calendar.get(Calendar.MONTH) - 1); + citrus.setCurDay(calendar.get(Calendar.DATE)); + citrus.setCurBookId(-1); // showFragment(new HomeFragment()); setNavViewEvent();