File tree 3 files changed +11
-7
lines changed
3 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,14 @@ public void onNewIntent(final Intent intent) {
85
85
private void handleIntent (final Intent intent ) {
86
86
setupFullScreenInput ();
87
87
88
- if (Intent .ACTION_VIEW .equals (intent .getAction ())) { // 来自桌面快捷方式
88
+ if (Intent .ACTION_MAIN .equals (intent .getAction ())) { // 来自桌面快捷方式
89
+ final EditText input = findViewById (R .id .full_screen_input );
90
+ input .postDelayed (() -> {
91
+ input .requestFocus ();
92
+ KeyboardUtils .showSoftInput (input );
93
+ }, 500 );
94
+ return ;
95
+ } else if (Intent .ACTION_VIEW .equals (intent .getAction ())) { // 来自菜单快捷方式
89
96
final String data = intent .getDataString ();
90
97
if (StringUtils .equals (data , "shorthand" )) {
91
98
final EditText input = findViewById (R .id .full_screen_input );
Original file line number Diff line number Diff line change 6
6
android : padding =" 16dp" >
7
7
8
8
<LinearLayout
9
- style =" ?android:attr/buttonBarStyle"
10
9
android : layout_width =" match_parent"
11
10
android : layout_height =" wrap_content"
12
11
android : orientation =" horizontal" >
13
12
14
13
<Button
15
14
android : id =" @+id/submit_button"
16
- style =" ?android:attr/buttonBarButtonStyle"
17
15
android : layout_width =" 0dp"
18
16
android : layout_height =" wrap_content"
19
17
android : layout_weight =" 1"
20
18
android : text =" @string/submit" />
21
19
22
20
<Button
23
21
android : id =" @+id/add_to_home_button"
24
- style =" ?android:attr/buttonBarButtonStyle"
25
22
android : layout_width =" 0dp"
26
23
android : layout_height =" wrap_content"
27
24
android : layout_weight =" 1"
33
30
android : layout_width =" match_parent"
34
31
android : layout_height =" 0dp"
35
32
android : layout_weight =" 1"
33
+ android : background =" @null"
36
34
android : focusable =" true"
37
35
android : focusableInTouchMode =" true"
38
36
android : gravity =" top"
39
37
android : hint =" @string/enter_your_text"
40
38
android : inputType =" textMultiLine"
41
- android : padding =" 16dp"
42
- android : background =" @null" />
39
+ android : padding =" 16dp" />
43
40
</LinearLayout >
Original file line number Diff line number Diff line change 1
1
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2
2
buildscript {
3
3
ext {
4
- siyuanVersionCode = 268
4
+ siyuanVersionCode = 269
5
5
siyuanVersionName = " 3.1.26"
6
6
}
7
7
repositories {
You can’t perform that action at this time.
0 commit comments