Toggle navigation
Toggle navigation
This project
Loading...
Sign in
장연우
/
WELLO
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
신기성
2019-10-31 19:46:48 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
fbddcc8b3e403e23eb75ccef59117ee4c120369c
fbddcc8b
1 parent
d9e7ae35
putNoExtra Recommend Page proto
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
vip/app/src/main/java/com/example/vip/RecommendActivity.kt
vip/app/src/main/java/com/example/vip/RecommendActivity.kt
View file @
fbddcc8
...
...
@@ -76,6 +76,37 @@ class RecommendActivity : AppCompatActivity() {
}
else
{
Toast
.
makeText
(
this
,
"putExtra value not found"
,
Toast
.
LENGTH_SHORT
).
show
()
recomdatabase
.
orderByChild
(
"Policy"
).
startAt
(
intent
.
getStringExtra
(
"\uf8ff"
)).
addListenerForSingleValueEvent
(
object
:
ValueEventListener
{
override
fun
onCancelled
(
p0
:
DatabaseError
)
{
Toast
.
makeText
(
this
@RecommendActivity
,
"실패부분"
,
Toast
.
LENGTH_SHORT
).
show
()
}
override
fun
onDataChange
(
dataSnapshot
:
DataSnapshot
)
{
for
(
memoSnapshot
in
dataSnapshot
.
children
){
val
memo
=
memoSnapshot
.
getValue
(
MemoItemRecom
::
class
.
java
)
policyList
.
add
(
PolicyItem
(
ContextCompat
.
getDrawable
(
this
@RecommendActivity
,
R
.
drawable
.
image01
)
!!
,
memo
!!
.
Policy
,
memo
!!
.
Policy
,
memo
!!
.
Policy
,
4
.
toFloat
(),
"0"
)
)
}
val
adapter
=
PolicyAdapter
(
policyList
)
policyRecyclerView
.
adapter
=
adapter
}
})
}
...
...
Please
register
or
login
to post a comment