mirror of
https://github.com/bspeice/itcs4180
synced 2024-11-08 16:38:14 -05:00
Added default of INVISIBLE to result button
This commit is contained in:
parent
ce42163569
commit
051b4acdc2
@ -48,6 +48,7 @@
|
||||
android:id="@+id/btnViewResult"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="invisible"
|
||||
android:text="@string/btnViewResult" />
|
||||
|
||||
<LinearLayout
|
||||
|
@ -57,7 +57,7 @@ public class SearchActivity extends Activity {
|
||||
|
||||
locationText.setText(restLocation.getName());
|
||||
riddleView.setText(restLocation.getRiddle());
|
||||
if (restLocation.getKey() != null) {
|
||||
if (restLocation.getKey() != null && restLocation.getKey().compareTo("")!=0) {
|
||||
resultButton.setVisibility(View.VISIBLE);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user