Skip to content

Commit

Permalink
[Refactor] Revise EuPI code
Browse files Browse the repository at this point in the history
  • Loading branch information
phj0407 authored Sep 5, 2022
1 parent 48a0c65 commit 853b3f9
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions app/src/main/java/com/euphonyio/orderwith/StoreActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -56,21 +56,20 @@ class StoreActivity : ComponentActivity() {
private val TAG = "[StoreActivity]"
private lateinit var dbUtil: DBUtil
private lateinit var mTxManager: EuTxManager
private lateinit var mEuPIRxManagerMenu: EuRxManager
private lateinit var mEuPIRxManagerOrder: EuRxManager
private lateinit var EuPIRxManager: EuRxManager


override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)

dbUtil = DBUtil(this)
mTxManager = EuTxManager(this)
mEuPIRxManagerMenu = EuRxManager(EuOption.ModeType.EUPI)
mEuPIRxManagerMenu.setOnWaveKeyDown(RequestCodeEnum.MENU_REQUEST.code.toInt()) {
EuPIRxManager = EuRxManager(EuOption.ModeType.EUPI)
EuPIRxManager.setOnWaveKeyDown(RequestCodeEnum.MENU_REQUEST.code.toInt()) {
Toast.makeText(this, "Menu request detected", Toast.LENGTH_SHORT).show()
Log.d(TAG, "mEuPIRxManagerMenu - Receive menu request.")
}
mEuPIRxManagerOrder = EuRxManager(EuOption.ModeType.EUPI)
mEuPIRxManagerOrder.setOnWaveKeyDown(RequestCodeEnum.ORDER_REQUEST.code.toInt()) {
EuPIRxManager.setOnWaveKeyDown(RequestCodeEnum.ORDER_REQUEST.code.toInt()) {
Toast.makeText(this, "Order request detected", Toast.LENGTH_SHORT).show()
Log.d(TAG, "mEuPIRxManagerOrder - Receive order request.")
}
Expand Down

0 comments on commit 853b3f9

Please sign in to comment.