Skip to content

Commit

Permalink
Removes redundant visibility assignment
Browse files Browse the repository at this point in the history
Signed-off-by: Rafael Chagas <[email protected]>
  • Loading branch information
rtchagas committed Aug 3, 2019
1 parent b834f81 commit 2cde9ed
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -394,9 +394,7 @@ class PlacePickerActivity : AppCompatActivity(), PingKoinComponent,
btnRefreshLocation.isVisible = PingPlacePicker.isNearbySearchEnabled

// Hide or show the card search according to the width
cardSearch.visibility =
if (resources.getBoolean(R.bool.show_card_search)) View.VISIBLE
else View.GONE
cardSearch.isVisible = resources.getBoolean(R.bool.show_card_search)

// Add a nice fade effect to toolbar
appBarLayout.addOnOffsetChangedListener(
Expand Down

0 comments on commit 2cde9ed

Please sign in to comment.