send themes to a location
fabiola29 opened this issue · 1 comments
fabiola29 commented
send themes to a location
zjn0505 commented
Please check your code with some debug tools.
It looks that in onCreate callback you are adding click listeners to the buttons.
But what will be executed when click listener is triggered, is adding another click listener to the button clicked.
So instead of
bt_go.setOnClickListener(view -> button_go())
You can use
bt_go.setOnClickListener(view -> goto(location))
Also make sure to convert the location name into lowercase and exactly match the target location's name.