Commit 6ebd2599 by Wyh

外送/自取未配置功能權限時,不顯示右上角的三個點

Signed-off-by: Wyh <1239658231>
parent 5064a31b
......@@ -513,6 +513,8 @@ class DeliveryOrderMainActivity : BaseActivity<IPresenter>(), View.OnClickListen
qm_other_order_bar.setTitle(GsaCloudApplication.getRestaurantName())
qm_other_order_bar.addLeftImageButton(R.drawable.icon_return, R.id.iv_left_back).setOnClickListener { finish() }
if (newOrderFunction != null || historyOrderFunction != null || openCashBoxFunction != null) {
qm_other_order_bar.addRightImageButton(R.drawable.icon_topbar_overflow, R.id.topbar_right_change_button).setOnClickListener {
//彈出彈窗
if (pop == null) {
......@@ -546,6 +548,7 @@ class DeliveryOrderMainActivity : BaseActivity<IPresenter>(), View.OnClickListen
pop!!.show(it)
}
}
}
ivDisconnectView = qm_other_order_bar.addRightImageButton(R.drawable.ic_heart_disconnect, R.id.topbar_heart_disconnect)
ivDisconnectView.visibility = View.INVISIBLE
qm_other_order_bar.setBackgroundColor(ContextCompat.getColor(this, R.color.theme_color))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment