File tree Expand file tree Collapse file tree 2 files changed +1
-14
lines changed
app/src/main/java/com/github/jing332/tts_server_android Expand file tree Collapse file tree 2 files changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,6 @@ class MainActivity : AppCompatActivity() {
79
79
}
80
80
})
81
81
82
-
83
82
/* 注册广播*/
84
83
myReceiver = MyReceiver ()
85
84
val intentFilter = IntentFilter (TtsIntentService .ACTION_SEND )
@@ -105,18 +104,6 @@ class MainActivity : AppCompatActivity() {
105
104
MyTools .checkUpdate(this )
106
105
}
107
106
108
- /* 点击返回键返回桌面而不是退出程序*/
109
- override fun onKeyDown (keyCode : Int , event : KeyEvent ? ): Boolean {
110
- if (keyCode == KeyEvent .KEYCODE_BACK ) {
111
- val home = Intent (Intent .ACTION_MAIN )
112
- home.flags = Intent .FLAG_ACTIVITY_CLEAR_TOP
113
- home.addCategory(Intent .CATEGORY_HOME )
114
- startActivity(home)
115
- return true
116
- }
117
- return super .onKeyDown(keyCode, event)
118
- }
119
-
120
107
/* 右上角更多菜单*/
121
108
override fun onCreateOptionsMenu (menu : Menu ? ): Boolean {
122
109
val inflation: MenuInflater = menuInflater
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ class TtsIntentService(name: String = "TtsIntentService") : IntentService(name)
126
126
Log .d(" LogCallback" , s)
127
127
sendLog(s)
128
128
}
129
- /* 启动动Go服务并阻塞等待 ,直到关闭*/
129
+ /* 启动Go服务并阻塞等待 ,直到关闭*/
130
130
Tts_server_lib .runServer(port.toLong(), cb)
131
131
sendClosedMsg()
132
132
}
You can’t perform that action at this time.
0 commit comments