proper code formatting

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2020-07-28 14:57:01 +02:00
parent 7d14c90b7d
commit f744a2351d
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -65,7 +65,9 @@ class NotificationsActivityIT : AbstractIT() {
date.set(110, 2, 2, 10, 20, 30) date.set(110, 2, 2, 10, 20, 30)
val notifications = ArrayList<Notification>() val notifications = ArrayList<Notification>()
notifications.add(Notification(1, notifications.add(
Notification(
1,
"files", "files",
"user", "user",
date.time, date.time,
@ -79,13 +81,17 @@ class NotificationsActivityIT : AbstractIT() {
HashMap<String, RichObject>(), HashMap<String, RichObject>(),
"link", "link",
"icon", "icon",
ArrayList<Action>())) ArrayList<Action>()
)
)
val actions = ArrayList<Action>() val actions = ArrayList<Action>()
actions.add(Action("Send usage", "link", "url", true)) actions.add(Action("Send usage", "link", "url", true))
actions.add(Action("Not now", "link", "url", false)) actions.add(Action("Not now", "link", "url", false))
notifications.add(Notification(1, notifications.add(
Notification(
1,
"files", "files",
"user", "user",
date.time, date.time,
@ -94,12 +100,15 @@ class NotificationsActivityIT : AbstractIT() {
"Help improve Nextcloud", "Help improve Nextcloud",
"SubjectRich", "SubjectRich",
HashMap<String, RichObject>(), HashMap<String, RichObject>(),
"Do you want to help us to improve Nextcloud by providing some anonymize data about your setup and usage?", "Do you want to help us to improve Nextcloud" +
" by providing some anonymize data about your setup and usage?",
"MessageRich", "MessageRich",
HashMap<String, RichObject>(), HashMap<String, RichObject>(),
"link", "link",
"icon", "icon",
actions)) actions
)
)
sut.runOnUiThread { sut.populateList(notifications) } sut.runOnUiThread { sut.populateList(notifications) }