Fix range of days in exam navigation (#172)

This commit is contained in:
Mikołaj Pich 2018-10-24 16:31:08 +02:00 committed by Rafał Borcz
parent 0211a7f0a0
commit 745894f3a3
2 changed files with 4 additions and 4 deletions

View File

@ -29,12 +29,12 @@
</intent-filter> </intent-filter>
</activity> </activity>
<activity <activity
android:name="ui.modules.login.LoginActivity" android:name=".ui.modules.login.LoginActivity"
android:configChanges="orientation|screenSize" android:configChanges="orientation|screenSize"
android:label="@string/login_title" android:label="@string/login_title"
android:windowSoftInputMode="adjustResize" /> android:windowSoftInputMode="adjustResize" />
<activity <activity
android:name="ui.modules.main.MainActivity" android:name=".ui.modules.main.MainActivity"
android:configChanges="orientation|screenSize" android:configChanges="orientation|screenSize"
android:label="@string/main_title" android:label="@string/main_title"
android:launchMode="singleTop" android:launchMode="singleTop"

View File

@ -101,8 +101,8 @@ class ExamPresenter @Inject constructor(
clearData() clearData()
showPreButton(!currentDate.minusDays(7).isHolidays) showPreButton(!currentDate.minusDays(7).isHolidays)
showNextButton(!currentDate.plusDays(7).isHolidays) showNextButton(!currentDate.plusDays(7).isHolidays)
updateNavigationWeek("${currentDate.toFormattedString("dd.MM")} - " + updateNavigationWeek("${currentDate.monday.toFormattedString("dd.MM")} - " +
currentDate.plusDays(4).toFormattedString("dd.MM")) currentDate.friday.toFormattedString("dd.MM"))
} }
} }
} }