File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,8 @@ class BtService : Service() {
70
70
closeThread()
71
71
72
72
val device = btAdapter.getRemoteDevice(address)
73
- Log .e(LOG_TAG , " connect to: " + device)
73
+ sendToast(this , device.name?.let { getString(R .string.connecting_to, it) } ? : getString(R .string.connecting))
74
+ Log .e(LOG_TAG , " connecting to: " + device)
74
75
75
76
btThread = ConnectingThread (device)
76
77
btThread?.start()
Original file line number Diff line number Diff line change 53
53
<string name =" new_local_title" >Start a new game?</string >
54
54
<string name =" starting_player" >Beginning player</string >
55
55
<string name =" enemy_turn" >The enemy is playing!</string >
56
+ <string name =" connecting_to" >Connecting to %1$s</string >
56
57
<string name =" connection_lost" >Connection lost</string >
57
58
<string name =" no_prev_moves" >No previous moves</string >
58
59
<string name =" game_winner" >%1$s won the game!</string >
65
66
<string name =" tie_message" >It is a tie!</string >
66
67
<string name =" bt_game" >Bluetooth Game</string >
67
68
<string name =" human_game" >Human Game</string >
69
+ <string name =" connecting" >Connecting</string >
68
70
<string name =" choose_one" >Choose one</string >
69
71
<string name =" no_thanks" >No, thanks</string >
70
72
<string name =" you_lost" >You lost!</string >
You can’t perform that action at this time.
0 commit comments