capacitor-dex-editor 0.0.45 → 0.0.47

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.
@@ -159,13 +159,6 @@ public class SmaliEditorActivity extends AppCompatActivity {
159
159
  });
160
160
  toolbar.addView(redoBtn);
161
161
 
162
- // 保存按钮
163
- if (!readOnly) {
164
- ImageButton saveBtn = createIconButton("✓");
165
- saveBtn.setOnClickListener(v -> saveAndFinish());
166
- toolbar.addView(saveBtn);
167
- }
168
-
169
162
  return toolbar;
170
163
  }
171
164
 
@@ -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.onTextChanged();
1530
+ if (mTextListener != null) {
1531
+ mTextListener.onTextChanged();
1532
+ }
1531
1533
  }
1532
1534
 
1533
1535
  // ---------- Insert / Delete with handling ----------
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "capacitor-dex-editor",
3
- "version": "0.0.45",
3
+ "version": "0.0.47",
4
4
  "description": "Capacitor-plugin-for-editing-DEX-files-in-APK",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",