1
0
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:
tokugawa 2014-04-29 18:34:31 -04:00
parent ce42163569
commit 051b4acdc2
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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);
}