Skip to content

Commit

Permalink
Fix: App crashing when clicked on share button to share the QR code o…
Browse files Browse the repository at this point in the history
…f the user. (#1656)

Description:
The ImageUtils.kt file was not using the correct APPLICATION_ID which was causing the IllegalArgumentException for the provider.
I have corrected the code using the correct APPLICATION_ID.
  • Loading branch information
Sarthak9504 authored Jun 15, 2024
1 parent 554cc61 commit 796336b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mifospay/src/main/java/org/mifospay/utils/ImageUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import android.graphics.Bitmap
import android.net.Uri
import androidx.core.content.FileProvider
import dagger.hilt.android.qualifiers.ApplicationContext
import org.mifospay.BuildConfig
import java.io.File
import java.io.FileOutputStream
import java.io.IOException
Expand All @@ -22,7 +23,7 @@ object ImageUtils {
stream.close()
uri = FileProvider.getUriForFile(
context,
"org.mifospay.provider", file
BuildConfig.APPLICATION_ID + ".provider", file
)
} catch (e: IOException) {
e.printStackTrace()
Expand Down

0 comments on commit 796336b

Please sign in to comment.