Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stefan Zabka
Companion App Android
Commits
4258ca6a
Commit
4258ca6a
authored
Aug 22, 2019
by
Anon
Browse files
MainFragment: Use different pairing button label when connected.
parent
aec0ac31
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/de/ccc/events/badge/card10/main/MainFragment.kt
View file @
4258ca6a
...
...
@@ -76,6 +76,7 @@ class MainFragment : Fragment() {
private
fun
showConnectedView
(
view
:
View
)
{
view
.
findViewById
<
ConstraintLayout
>(
R
.
id
.
container_connected
).
visibility
=
View
.
VISIBLE
view
.
findViewById
<
ConstraintLayout
>(
R
.
id
.
container_disconnected
).
visibility
=
View
.
GONE
view
.
findViewById
<
Button
>(
R
.
id
.
button_pair
).
text
=
getString
(
R
.
string
.
main_button_manage_pairings
)
}
private
fun
showDisconnectedView
(
view
:
View
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment