mirror of
https://github.com/nextcloud/android.git
synced 2024-11-29 10:49:04 +03:00
proper code formatting
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
7d14c90b7d
commit
f744a2351d
1 changed files with 39 additions and 30 deletions
|
@ -65,41 +65,50 @@ 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(
|
||||||
"files",
|
Notification(
|
||||||
"user",
|
1,
|
||||||
date.time,
|
"files",
|
||||||
"objectType",
|
"user",
|
||||||
"objectId",
|
date.time,
|
||||||
"App recommendation: Tasks",
|
"objectType",
|
||||||
"SubjectRich",
|
"objectId",
|
||||||
HashMap<String, RichObject>(),
|
"App recommendation: Tasks",
|
||||||
"Sync tasks from various devices with your Nextcloud and edit them online.",
|
"SubjectRich",
|
||||||
"MessageRich",
|
HashMap<String, RichObject>(),
|
||||||
HashMap<String, RichObject>(),
|
"Sync tasks from various devices with your Nextcloud and edit them online.",
|
||||||
"link",
|
"MessageRich",
|
||||||
"icon",
|
HashMap<String, RichObject>(),
|
||||||
ArrayList<Action>()))
|
"link",
|
||||||
|
"icon",
|
||||||
|
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(
|
||||||
"files",
|
Notification(
|
||||||
"user",
|
1,
|
||||||
date.time,
|
"files",
|
||||||
"objectType",
|
"user",
|
||||||
"objectId",
|
date.time,
|
||||||
"Help improve Nextcloud",
|
"objectType",
|
||||||
"SubjectRich",
|
"objectId",
|
||||||
HashMap<String, RichObject>(),
|
"Help improve Nextcloud",
|
||||||
"Do you want to help us to improve Nextcloud by providing some anonymize data about your setup and usage?",
|
"SubjectRich",
|
||||||
"MessageRich",
|
HashMap<String, RichObject>(),
|
||||||
HashMap<String, RichObject>(),
|
"Do you want to help us to improve Nextcloud" +
|
||||||
"link",
|
" by providing some anonymize data about your setup and usage?",
|
||||||
"icon",
|
"MessageRich",
|
||||||
actions))
|
HashMap<String, RichObject>(),
|
||||||
|
"link",
|
||||||
|
"icon",
|
||||||
|
actions
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
sut.runOnUiThread { sut.populateList(notifications) }
|
sut.runOnUiThread { sut.populateList(notifications) }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue