forked from openMF/mobile-wallet
-
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.
Fixing crashes on clicking bank acc details and editprofile (openMF#1713
) * Fix : App crashing on clicking BankAccount * Fix : App crashing on clicking Editprofile * Fix : App crashing on clicking confirm in create SI
- Loading branch information
1 parent
7c875f8
commit c71b4ee
Showing
6 changed files
with
73 additions
and
40 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
7 changes: 6 additions & 1 deletion
7
.../profile/src/main/kotlin/org/mifospay/feature/profile/navigation/EditProfileNavigation.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,25 @@ | ||
package org.mifospay.feature.profile.navigation | ||
|
||
import android.content.Context | ||
import android.net.Uri | ||
import androidx.navigation.NavController | ||
import androidx.navigation.NavGraphBuilder | ||
import androidx.navigation.NavOptions | ||
import androidx.navigation.compose.composable | ||
import org.mifospay.feature.profile.edit.EditProfileScreenRoute | ||
import java.io.File | ||
|
||
const val EDIT_PROFILE_ROUTE = "edit_profile_route" | ||
fun NavController.navigateToEditProfile(navOptions: NavOptions? = null) = navigate(EDIT_PROFILE_ROUTE, navOptions) | ||
|
||
fun NavGraphBuilder.editProfileScreen( | ||
onBackPress: () -> Unit, | ||
getUri:(context: Context, file: File) -> Uri | ||
) { | ||
composable(route = EDIT_PROFILE_ROUTE) { | ||
EditProfileScreenRoute( | ||
onBackClick = onBackPress | ||
onBackClick = onBackPress, | ||
getUri = getUri | ||
) | ||
} | ||
} |
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