Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
石璀亮
/
turingos
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f926d640
authored
Aug 19, 2019
by
cuiliang.shi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
抖音短视频 天气 更新
1 parent
a834e3c7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
app/src/main/java/com/toscl/turingos/MainActivity.java
app/src/main/java/com/toscl/turingos/util/SkillsSlotUtil.java
app/src/main/java/com/toscl/turingos/MainActivity.java
View file @
f926d64
...
...
@@ -14,6 +14,8 @@ import android.os.Bundle;
import
android.text.TextUtils
;
import
android.text.method.ScrollingMovementMethod
;
import
android.util.Log
;
import
android.view.KeyEvent
;
import
android.view.MotionEvent
;
import
android.view.View
;
import
android.view.Window
;
import
android.view.WindowManager
;
...
...
@@ -396,7 +398,12 @@ public class MainActivity extends AppCompatActivity implements View.OnClickListe
}
};
public
void
processSequence
(
final
String
content
)
{
public
void
processSequence
(
String
content
)
{
if
(
content
.
contains
(
"抖音,短视频"
)){
content
=
content
.
replace
(
"抖音,短视频"
,
"抖音短视频"
);
}
Log
.
d
(
TAG
,
"start text, content: "
+
content
);
behavior
=
OSDataTransformUtil
.
getBehavior
(
content
);
curentBehavior
=
behavior
.
getIntent
();
...
...
app/src/main/java/com/toscl/turingos/util/SkillsSlotUtil.java
View file @
f926d64
...
...
@@ -132,7 +132,7 @@ public class SkillsSlotUtil {
label
=
"天气"
;
break
;
case
"com.ss.android.ugc.aweme"
:
label
=
"抖音"
;
label
=
"抖音
,短视频
"
;
break
;
default
:
break
;
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment