Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…1925) * Removed view dependency from ProfileEditViewModel - Used MutableLiveData to store the value of ProfileEditActivity Title and then expose it using a livedata variable in profleEditViewModel class - Observe the livedata variable to set ProfileEditActivity Title in ProfileEditActivityPresenter class * Resolved swith dependency from ProfileViewModel - Added a livedata variable to expose the checked state of switch in ProfileViewModel through which ProfileEditActivityPresenter can observe and update the UI accordingly - Removed switch variable initialization from viewmodel - Added activity dependeny as it was before * Added new lines as required * Removed Switch & activity from ProfileViewModel - Removed activity variable from ProfileViewModel, as we can simply use existing profile livedata variable to update the title of the ProfileEditActivity in the ProfileEditActivityPresenter - Instead of using viewModelProvider in ProfileEditActivityPresenter to get viewmodel, now it is directly injected - Since viewmodel can survive configuration changes, there is no need to create an extra variable to store profile name to use it in onRestoreInstanceState - Added comments for public variable in ProfileEditViewModel * Removed unused import * Removed @ignore from activity title related testcases from ProfileEditActivityTest and modified description for the public variable in ProfielEditViewModel * Resolved tests that are failing in roboelectric except that uses scrollTo() method * FirebaseApp initializtion was giving an IO exception and since it is not used in activity, removed it from the test * Removed unused imports * added scrollview in port layout of profile_edit_activity to resolve roboelectric tests * Removed unused imports * Added feedback changes - Removed unneccessary use of testCoroutineDispatchers.runCurrent() - Renamed editViewModel to profileEditViewModel - Few Indentation * modified indentation * Added PR requested changes - Removed '// ktlint-disable max-line-length' by following suggested convention - Renamed _isAllowedDownloadAccess to isAllowedDownloadAccessMutableLiveData * Added feedback changes, renaming tests * Used launch instead of ActivityScenario.launch * Added named argument * Removed 0dp margin and padding from scrollview and renamed id for linearlayout
- Loading branch information