capacitor-dex-editor 0.0.49 → 0.0.50
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.
|
@@ -264,6 +264,8 @@ public class SmaliEditorActivity extends AppCompatActivity {
|
|
|
264
264
|
} else {
|
|
265
265
|
editView.find(java.util.regex.Pattern.quote(text));
|
|
266
266
|
}
|
|
267
|
+
// 跳转到第一个匹配项
|
|
268
|
+
editView.next();
|
|
267
269
|
}
|
|
268
270
|
});
|
|
269
271
|
|
|
@@ -278,6 +280,7 @@ public class SmaliEditorActivity extends AppCompatActivity {
|
|
|
278
280
|
} else {
|
|
279
281
|
editView.find(java.util.regex.Pattern.quote(text));
|
|
280
282
|
}
|
|
283
|
+
editView.next();
|
|
281
284
|
editView.replaceFirst(replace);
|
|
282
285
|
}
|
|
283
286
|
});
|
|
@@ -286,10 +286,10 @@ public class EditView extends View {
|
|
|
286
286
|
// Initialize magnifier
|
|
287
287
|
mMagnifier = new Magnifier(this);
|
|
288
288
|
|
|
289
|
-
//
|
|
289
|
+
// Cursor width responsive to screen density
|
|
290
290
|
int density = (int) getResources().getDisplayMetrics().density;
|
|
291
|
-
mCursorWidth = Math.max(
|
|
292
|
-
if (mCursorWidth >
|
|
291
|
+
mCursorWidth = Math.max(4, density * 2); // Minimum 4px, scales with density
|
|
292
|
+
if (mCursorWidth > 8) mCursorWidth = 8; // Max 8px for visibility
|
|
293
293
|
|
|
294
294
|
// handle left - scale down selection handles
|
|
295
295
|
mTextSelectHandleLeftRes = context.getDrawable(R.drawable.abc_text_select_handle_left_mtrl);
|