Refactoring

pull/194/merge
M66B 3 years ago
parent 0e66f97804
commit a1964ff990

@ -417,7 +417,7 @@ public class FragmentOptions extends FragmentBase {
} }
private int getSuggestions(String query, int id, int tab, String title, View view, MatrixCursor cursor) { private int getSuggestions(String query, int id, int tab, String title, View view, MatrixCursor cursor) {
if (view == null || "debug".equals(view.getTag())) if (view == null || "nosuggest".equals(view.getTag()))
return id; return id;
else if (view instanceof ViewGroup) { else if (view instanceof ViewGroup) {
ViewGroup group = (ViewGroup) view; ViewGroup group = (ViewGroup) view;

@ -359,7 +359,7 @@
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="12dp" android:layout_marginTop="12dp"
android:tag="debug" android:tag="nosuggest"
android:text="@string/title_advanced_bind_socket" android:text="@string/title_advanced_bind_socket"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
@ -371,7 +371,7 @@
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="12dp" android:layout_marginTop="12dp"
android:tag="debug" android:tag="nosuggest"
android:text="@string/title_advanced_standalone_vpn" android:text="@string/title_advanced_standalone_vpn"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
@ -383,7 +383,7 @@
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="12dp" android:layout_marginTop="12dp"
android:tag="debug" android:tag="nosuggest"
android:text="@string/title_advanced_tcp_keep_alive" android:text="@string/title_advanced_tcp_keep_alive"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
@ -500,7 +500,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginHorizontal="3dp" android:layout_marginHorizontal="3dp"
android:layout_marginTop="12dp" android:layout_marginTop="12dp"
android:tag="debug" android:tag="nosuggest"
app:cardBackgroundColor="?attr/colorCardBackground" app:cardBackgroundColor="?attr/colorCardBackground"
app:cardCornerRadius="6dp" app:cardCornerRadius="6dp"
app:cardElevation="0dp" app:cardElevation="0dp"

@ -409,7 +409,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginHorizontal="3dp" android:layout_marginHorizontal="3dp"
android:layout_marginTop="12dp" android:layout_marginTop="12dp"
android:tag="debug" android:tag="nosuggest"
app:cardBackgroundColor="?attr/colorCardBackground" app:cardBackgroundColor="?attr/colorCardBackground"
app:cardCornerRadius="6dp" app:cardCornerRadius="6dp"
app:cardElevation="0dp" app:cardElevation="0dp"

@ -90,7 +90,7 @@
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="12dp" android:layout_marginTop="12dp"
android:tag="debug" android:tag="nosuggest"
android:text="@string/title_advanced_external_answer" android:text="@string/title_advanced_external_answer"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
@ -561,7 +561,7 @@
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="12dp" android:layout_marginTop="12dp"
android:tag="debug" android:tag="nosuggest"
android:text="@string/title_advanced_test1" android:text="@string/title_advanced_test1"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
@ -573,7 +573,7 @@
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="12dp" android:layout_marginTop="12dp"
android:tag="debug" android:tag="nosuggest"
android:text="@string/title_advanced_test2" android:text="@string/title_advanced_test2"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
@ -585,7 +585,7 @@
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="12dp" android:layout_marginTop="12dp"
android:tag="debug" android:tag="nosuggest"
android:text="@string/title_advanced_test3" android:text="@string/title_advanced_test3"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
@ -597,7 +597,7 @@
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="12dp" android:layout_marginTop="12dp"
android:tag="debug" android:tag="nosuggest"
android:text="@string/title_advanced_test4" android:text="@string/title_advanced_test4"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
@ -609,7 +609,7 @@
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="12dp" android:layout_marginTop="12dp"
android:tag="debug" android:tag="nosuggest"
android:text="@string/title_advanced_test5" android:text="@string/title_advanced_test5"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
@ -636,7 +636,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginHorizontal="3dp" android:layout_marginHorizontal="3dp"
android:layout_marginTop="12dp" android:layout_marginTop="12dp"
android:tag="debug" android:tag="nosuggest"
app:cardBackgroundColor="?attr/colorCardBackground" app:cardBackgroundColor="?attr/colorCardBackground"
app:cardCornerRadius="6dp" app:cardCornerRadius="6dp"
app:cardElevation="0dp" app:cardElevation="0dp"

Loading…
Cancel
Save