Skip to content

Commit

Permalink
Merge pull request #218 from WideChat/ear_toolbar_bug_fix
Browse files Browse the repository at this point in the history
fix the toolbar funny where toolbar spacing gets messed up and "New Chat" title gets cut off
  • Loading branch information
ear-dev authored Jan 31, 2019
2 parents daee2ac + da83a2b commit a99e30e
Showing 1 changed file with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import kotlin.collections.HashMap

// WIDECHAT
import chat.rocket.android.helper.Constants
import com.facebook.drawee.view.SimpleDraweeView
import android.view.LayoutInflater
import android.widget.TextView
import androidx.recyclerview.widget.LinearLayoutManager
Expand Down Expand Up @@ -67,11 +66,6 @@ class ContactsFragment : Fragment() {
private var searchText: TextView? = null
private var searchCloseButton: ImageView? = null

// WIDECHAT
private var profileButton: SimpleDraweeView? = null
private var widechatSearchView: SearchView? = null
private var onlineStatusButton: ImageView? = null

companion object {
/**
* Create a new ContactList fragment that displays the given list of contacts
Expand Down Expand Up @@ -200,12 +194,7 @@ class ContactsFragment : Fragment() {

if (Constants.WIDECHAT) {
with((activity as AppCompatActivity?)?.supportActionBar) {
profileButton = this?.getCustomView()?.findViewById(R.id.profile_image_avatar)
profileButton?.visibility = View.GONE
onlineStatusButton=this?.getCustomView()?.findViewById(R.id.text_online)
onlineStatusButton?.visibility = View.GONE
widechatSearchView = this?.getCustomView()?.findViewById(R.id.action_widechat_search)
widechatSearchView?.visibility = View.GONE
this?.setDisplayShowCustomEnabled(false)
}
}
}
Expand Down

0 comments on commit a99e30e

Please sign in to comment.