mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-21 05:09:00 +00:00
minor fixes
This commit is contained in:
parent
c4b5664931
commit
57b780bece
2 changed files with 3 additions and 1 deletions
|
|
@ -488,7 +488,7 @@ class AccountPreferenceFragment :
|
|||
val clipboard: ClipboardManager? = context?.let { getSystemService(it, ClipboardManager::class.java) }
|
||||
clipboard?.setPrimaryClip(ClipData.newPlainText(name, value))
|
||||
(activity as? SnackbarActivity)?.showSnackbar(
|
||||
content = context?.getString(R.string.copied_to_clipboard),
|
||||
content = context?.getString(R.string.copied_to_clipboard, name),
|
||||
displayType = HabiticaSnackbar.SnackbarDisplayType.SUCCESS
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -236,6 +236,8 @@ open class HabiticaAlertDialog(context: Context) : AlertDialog(context, R.style.
|
|||
}
|
||||
configureButtonLayoutParams(buttonView)
|
||||
buttonsWrapper.addView(buttonView)
|
||||
// for some reason the padding gets lost somewhere.
|
||||
buttonView.setPadding(24.dpToPx(context), 0, 24.dpToPx(context), 0)
|
||||
return buttonView
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue