Skip to content

Commit

Permalink
Fixed bug crash #1 change PIN code
Browse files Browse the repository at this point in the history
  • Loading branch information
hoanghiephui committed May 17, 2019
1 parent 3c22568 commit 0d3139f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ abstract class BaseBottomSheetDialogFragment : BottomSheetDialogFragment(), HasS
}

private fun onGlobalLayoutChanged(view: View) {
val parent = dialog?.findViewById<ViewGroup>(R.id.design_bottom_sheet);
val parent = dialog?.findViewById<ViewGroup>(R.id.design_bottom_sheet)
if (parent != null) {
val toggleArrow = view.findViewById<ExpandIconView?>(R.id.toggleArrow)
toggleArrow?.setState(ExpandIconView.LESS, true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ class BackupDialog : BaseBottomSheetDialogFragment() {
companion object {
fun show(activity: AppCompatActivity) {
val fragment = BackupDialog()
fragment.isCancelable = false
fragment.show(activity.supportFragmentManager, "receive_fragment")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import kotlinx.android.synthetic.main.dialog_encrypt.*
import org.bitcoinj.crypto.KeyCrypterException
import org.bitcoinj.crypto.KeyCrypterScrypt


class EncryptKeysDialogFragment : BaseBottomSheetDialogFragment() {
private val handler = Handler()
private val backgroundThread: HandlerThread by lazy {
Expand Down Expand Up @@ -196,6 +197,7 @@ class EncryptKeysDialogFragment : BaseBottomSheetDialogFragment() {
companion object {
fun show(activity: AppCompatActivity) {
val fragment = EncryptKeysDialogFragment()
fragment.isCancelable = false
fragment.show(activity.supportFragmentManager, EncryptKeysDialogFragment::class.java.simpleName)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ class PermissionDeniedDialogFragment : DialogFragment() {

fun showDialog(fm: FragmentManager) {
val newFragment = PermissionDeniedDialogFragment()
newFragment.isCancelable = false
newFragment.show(fm, FRAGMENT_TAG)
}
}
Expand Down

0 comments on commit 0d3139f

Please sign in to comment.