capacitor-dex-editor 0.0.44 → 0.0.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<application>
|
|
3
3
|
<activity
|
|
4
4
|
android:name=".SmaliEditorActivity"
|
|
5
|
-
android:theme="@
|
|
5
|
+
android:theme="@style/Theme.AppCompat.NoActionBar"
|
|
6
6
|
android:configChanges="orientation|screenSize|keyboardHidden"
|
|
7
7
|
android:windowSoftInputMode="adjustResize"
|
|
8
8
|
android:exported="false" />
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
package com.aetherlink.dexeditor;
|
|
2
2
|
|
|
3
|
-
import android.app.Activity;
|
|
4
3
|
import android.content.Intent;
|
|
5
4
|
import android.graphics.Color;
|
|
6
5
|
import android.graphics.Typeface;
|
|
@@ -16,6 +15,7 @@ import android.widget.LinearLayout;
|
|
|
16
15
|
import android.widget.TextView;
|
|
17
16
|
import android.widget.Toast;
|
|
18
17
|
|
|
18
|
+
import androidx.appcompat.app.AppCompatActivity;
|
|
19
19
|
import androidx.core.graphics.Insets;
|
|
20
20
|
import androidx.core.view.ViewCompat;
|
|
21
21
|
import androidx.core.view.WindowCompat;
|
|
@@ -23,7 +23,7 @@ import androidx.core.view.WindowInsetsCompat;
|
|
|
23
23
|
|
|
24
24
|
import com.aetherlink.dexeditor.editor.EditView;
|
|
25
25
|
|
|
26
|
-
public class SmaliEditorActivity extends
|
|
26
|
+
public class SmaliEditorActivity extends AppCompatActivity {
|
|
27
27
|
|
|
28
28
|
public static final String EXTRA_CONTENT = "content";
|
|
29
29
|
public static final String EXTRA_TITLE = "title";
|
|
@@ -44,19 +44,11 @@ public class SmaliEditorActivity extends Activity {
|
|
|
44
44
|
super.onCreate(savedInstanceState);
|
|
45
45
|
|
|
46
46
|
// Edge-to-Edge 模式
|
|
47
|
+
WindowCompat.setDecorFitsSystemWindows(getWindow(), false);
|
|
47
48
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
|
48
49
|
getWindow().setStatusBarColor(Color.TRANSPARENT);
|
|
49
50
|
getWindow().setNavigationBarColor(Color.TRANSPARENT);
|
|
50
51
|
}
|
|
51
|
-
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
|
|
52
|
-
getWindow().setDecorFitsSystemWindows(false);
|
|
53
|
-
} else {
|
|
54
|
-
getWindow().getDecorView().setSystemUiVisibility(
|
|
55
|
-
View.SYSTEM_UI_FLAG_LAYOUT_STABLE |
|
|
56
|
-
View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION |
|
|
57
|
-
View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
|
|
58
|
-
);
|
|
59
|
-
}
|
|
60
52
|
|
|
61
53
|
// 获取参数
|
|
62
54
|
Intent intent = getIntent();
|
|
@@ -1527,7 +1527,9 @@ public class EditView extends View {
|
|
|
1527
1527
|
// Call this method whenever the text content changes
|
|
1528
1528
|
public void onTextChanged() {
|
|
1529
1529
|
clearSyntaxCache(); // keep cache fresh
|
|
1530
|
-
mTextListener
|
|
1530
|
+
if (mTextListener != null) {
|
|
1531
|
+
mTextListener.onTextChanged();
|
|
1532
|
+
}
|
|
1531
1533
|
}
|
|
1532
1534
|
|
|
1533
1535
|
// ---------- Insert / Delete with handling ----------
|