forked from github/wulkanowy-mirror
Fix range of days in exam navigation (#172)
This commit is contained in:
parent
0211a7f0a0
commit
745894f3a3
@ -29,12 +29,12 @@
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<activity
|
||||
android:name="ui.modules.login.LoginActivity"
|
||||
android:name=".ui.modules.login.LoginActivity"
|
||||
android:configChanges="orientation|screenSize"
|
||||
android:label="@string/login_title"
|
||||
android:windowSoftInputMode="adjustResize" />
|
||||
<activity
|
||||
android:name="ui.modules.main.MainActivity"
|
||||
android:name=".ui.modules.main.MainActivity"
|
||||
android:configChanges="orientation|screenSize"
|
||||
android:label="@string/main_title"
|
||||
android:launchMode="singleTop"
|
||||
|
@ -101,8 +101,8 @@ class ExamPresenter @Inject constructor(
|
||||
clearData()
|
||||
showPreButton(!currentDate.minusDays(7).isHolidays)
|
||||
showNextButton(!currentDate.plusDays(7).isHolidays)
|
||||
updateNavigationWeek("${currentDate.toFormattedString("dd.MM")} - " +
|
||||
currentDate.plusDays(4).toFormattedString("dd.MM"))
|
||||
updateNavigationWeek("${currentDate.monday.toFormattedString("dd.MM")} - " +
|
||||
currentDate.friday.toFormattedString("dd.MM"))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user