Skip to content

Commit

Permalink
Run code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
msasikanth committed Feb 6, 2024
1 parent 1d3ee00 commit 6750f13
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ class DashboardRepositoryImpl(
d2.enrollmentModule()
.enrollments().uid(enrollmentUid)
enrollmentObjectRepository.setStatus(
enrollmentObjectRepository.blockingGet()!!.status()!!
enrollmentObjectRepository.blockingGet()!!.status()!!,
)
enrollmentObjectRepository.blockingDelete()
!d2.enrollmentModule().enrollments().byTrackedEntityInstance().eq(teiUid)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ import android.view.MenuItem
import android.view.View
import android.view.WindowManager
import android.widget.PopupMenu
import androidx.activity.compose.setContent
import androidx.activity.result.contract.ActivityResultContracts
import androidx.compose.material.Icon
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Delete
import androidx.core.content.ContextCompat
import androidx.core.view.ViewCompat
import androidx.databinding.DataBindingUtil
Expand Down Expand Up @@ -679,9 +675,10 @@ class TeiDashboardMobileActivity :
deleteForever = true,
onMainButtonClick = {
presenter.deleteTei()
}
},
).show(
supportFragmentManager, DeleteBottomSheetDialog.TAG
supportFragmentManager,
DeleteBottomSheetDialog.TAG,
)
}

Expand All @@ -692,9 +689,10 @@ class TeiDashboardMobileActivity :
mainButtonText = getString(R.string.remove),
onMainButtonClick = {
presenter.deleteEnrollment()
}
},
).show(
supportFragmentManager, DeleteBottomSheetDialog.TAG
supportFragmentManager,
DeleteBottomSheetDialog.TAG,
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Delete
Expand All @@ -31,7 +30,7 @@ DeleteBottomSheetDialog(
private val deleteForever: Boolean = false,
private val onMainButtonClick: () -> Unit,

) : BottomSheetDialogFragment() {
) : BottomSheetDialogFragment() {

companion object {
const val TAG: String = "DELETE_DIALOG"
Expand Down Expand Up @@ -95,9 +94,9 @@ DeleteBottomSheetDialog(
dismiss()
},
content = {
// no-op
// no-op
},
showSectionDivider = false
showSectionDivider = false,
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package org.dhis2.ui.dialogs.bottomsheet
import androidx.compose.ui.graphics.Color
import org.dhis2.ui.R
import org.dhis2.ui.theme.colorPrimary
import org.dhis2.ui.theme.errorColor
import org.dhis2.ui.theme.warningColor

sealed class DialogButtonStyle(
Expand Down

0 comments on commit 6750f13

Please sign in to comment.