Implement SyncActivity (with static data)

This commit is contained in:
2020-11-22 10:07:34 -06:00
parent 0497890cb0
commit 5376f4bff8
7 changed files with 257 additions and 2 deletions

View File

@@ -127,8 +127,7 @@ open class BaseScreen(@JvmField protected var activity: BaseActivity) {
*
* @param stringId the string resource id for this message.
*/
fun showMessage(@StringRes stringId: Int?) {
val rootView = this.rootView
fun showMessage(@StringRes stringId: Int?, rootView: View?) {
var snackbar = this.snackbar
if (stringId == null || rootView == null) return
if (snackbar == null) {
@@ -142,6 +141,10 @@ open class BaseScreen(@JvmField protected var activity: BaseActivity) {
snackbar.show()
}
fun showMessage(@StringRes stringId: Int?) {
showMessage(stringId, this.rootView)
}
fun showSendEmailScreen(@StringRes toId: Int, @StringRes subjectId: Int, content: String?) {
val to = activity.getString(toId)
val subject = activity.getString(subjectId)