Skip to content

Commit

Permalink
fix: [ANDROAPP-6652] surround with try catch sync status dialog onNoC…
Browse files Browse the repository at this point in the history
…onnection listener
  • Loading branch information
xavimolloy committed Nov 21, 2024
1 parent 222e3d3 commit af2e75d
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ import org.dhis2.usescases.sms.SmsSendingService
import org.dhis2.utils.analytics.AnalyticsHelper
import org.dhis2.utils.customviews.MessageAmountDialog
import org.hisp.dhis.android.core.common.State
import timber.log.Timber
import javax.inject.Inject

private const val SMS_PERMISSIONS_REQ_ID = 102
Expand Down Expand Up @@ -197,7 +198,12 @@ class SyncStatusDialog : BottomSheetDialogFragment(), GranularSyncContracts.View

private fun showSnackbar() {
dismiss()
onNoConnectionListener?.onNoConnection()
try {
onNoConnectionListener?.onNoConnection()
}
catch (e: Exception) {
Timber.d(e.message)
}
}

private fun syncGranular() {
Expand Down

0 comments on commit af2e75d

Please sign in to comment.