forked from dhis2/dhis2-android-capture-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add landscape support for Event Capture (dhis2#3586)
* Remove edit person button in the TeiDashboardMobileActivity landscape * feat: Add Enrollment form in landscape TeidashboardMobileActivity * feat: Remove the TEI name on the toobar of TeiDashboard in landscape * feat: Add support to not show data entry screen option in eventcapture landscape bottom navbar * feat: Add a new layout file to support landscape view in EventCaptureActivity * Rename eventViewandPager to eventViewPager * Add impementation to set ViewPagerAdapter for landscape view EventCapture * Show the DataEntry screen when it is portrait view * feat: Hide DataEntry icon from the BottomNavBar in Landscape * feat: Add support for EventCapture to adapt to orientation changes * Remove calling isPortrait() instead use isPortrait value from EventCapture module * Handle portrait pages and landscape pages in EventPagerAdapter * feat: Add support to show complete actions on landscape * feat: Select the first page in navigationBar as the current page upon orientation changes * Create a global property eventViewPager to avoid dupicate assignment of ViewPager * feat: Add event capture form in landscape * Add a method that will by dagger to return DashboardViewModelFactory * Add support to instantiate DashboardViewModel in EventCaptureActivity in landscape * Add interface class to enable EventCaptureActivity and TeiDashboardActivityto share the TEIDataFragment * feat: Add support to show the Tei detail card on the EventCaptureActivity landscape * fix: Remove saving EventCaptureFormFragment instance on configuration changes * feat: Assign programUid a value from an intent to help load Events * feat: Add support to open new events without starting a new instance of EventCaptureActivity * feat: Add support to highlight the selected event * Remove print statement in production codes * fix: Fix a behavior where an app crash when selecting events without registration on landscape * feat: Make programs clickabe in EventCaptureActivity * fix: Remove highlighting OVERDUE, SCHEDULE and SKIPPED Events when selected * Remove logics to highlight the selected event for portrait view * Remove unused import * feat: update dashboardViewModel after syncing Tei details in Eventcapture to refresh the changes * Remove unused import directive * Refactor codes with ktlintFormat * Move default statement in switch statement to the end * retrigger github checks * fix: Remove non-null assertions as they may cause NullPointerException * Add support to show Event details after updating scheduled events * Remove if null check for viewModelFactory and use ?.let instead * Format code with ./gradlew ktlintFormat
- Loading branch information
Showing
19 changed files
with
797 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.