Merge branch 'no-personalized-learning' into 'master'

Set "no personalized learning" flag for all text input

See merge request briar/briar!1783
This commit is contained in:
Torsten Grote
2023-03-09 14:14:11 +00:00
13 changed files with 19 additions and 9 deletions

View File

@@ -65,7 +65,8 @@ public class SetPasswordFragment extends SetupFragment {
if (!viewModel.needToShowDozeFragment()) { if (!viewModel.needToShowDozeFragment()) {
nextButton.setText(R.string.create_account_button); nextButton.setText(R.string.create_account_button);
passwordConfirmation.setImeOptions(IME_ACTION_DONE); int options = passwordConfirmation.getImeOptions();
passwordConfirmation.setImeOptions(options | IME_ACTION_DONE);
} }
viewModel.getIsCreatingAccount() viewModel.getIsCreatingAccount()

View File

@@ -33,6 +33,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/current_password" android:hint="@string/current_password"
android:imeOptions="flagNoPersonalizedLearning"
android:importantForAutofill="no" android:importantForAutofill="no"
android:inputType="textPassword" android:inputType="textPassword"
android:maxLines="1" /> android:maxLines="1" />
@@ -57,6 +58,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/choose_new_password" android:hint="@string/choose_new_password"
android:imeOptions="flagNoPersonalizedLearning"
android:importantForAutofill="no" android:importantForAutofill="no"
android:inputType="textPassword" android:inputType="textPassword"
android:maxLines="1" /> android:maxLines="1" />
@@ -78,7 +80,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/confirm_new_password" android:hint="@string/confirm_new_password"
android:imeOptions="actionDone" android:imeOptions="flagNoPersonalizedLearning|actionDone"
android:importantForAutofill="no" android:importantForAutofill="no"
android:inputType="textPassword" android:inputType="textPassword"
android:maxLines="1" /> android:maxLines="1" />

View File

@@ -19,6 +19,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/choose_forum_hint" android:hint="@string/choose_forum_hint"
android:imeOptions="flagNoPersonalizedLearning"
android:importantForAutofill="no" android:importantForAutofill="no"
android:inputType="text|textCapSentences" android:inputType="text|textCapSentences"
android:maxLines="1" /> android:maxLines="1" />

View File

@@ -25,7 +25,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="bottom" android:layout_gravity="bottom"
android:background="@android:color/transparent" android:background="@android:color/transparent"
android:imeOptions="actionSend" android:imeOptions="flagNoPersonalizedLearning|actionSend"
android:inputType="textMultiLine|textCapSentences|textAutoCorrect" android:inputType="textMultiLine|textCapSentences|textAutoCorrect"
android:minHeight="@dimen/text_input_height" android:minHeight="@dimen/text_input_height"
android:textColor="?android:attr/textColorPrimary" android:textColor="?android:attr/textColorPrimary"

View File

@@ -30,6 +30,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="16dp" android:layout_marginTop="16dp"
android:hint="@string/set_contact_alias_hint" android:hint="@string/set_contact_alias_hint"
android:imeOptions="flagNoPersonalizedLearning"
android:inputType="text|textCapWords" android:inputType="text|textCapWords"
android:textColor="?android:attr/textColorPrimary" android:textColor="?android:attr/textColorPrimary"
android:textSize="@dimen/text_size_medium" /> android:textSize="@dimen/text_size_medium" />

View File

@@ -19,6 +19,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/groups_create_group_hint" android:hint="@string/groups_create_group_hint"
android:imeOptions="flagNoPersonalizedLearning"
android:importantForAutofill="no" android:importantForAutofill="no"
android:inputType="text|textCapSentences" android:inputType="text|textCapSentences"
android:maxLines="1" /> android:maxLines="1" />

View File

@@ -205,6 +205,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:hint="@string/contact_link_hint" android:hint="@string/contact_link_hint"
android:imeOptions="flagNoPersonalizedLearning"
android:importantForAutofill="no" android:importantForAutofill="no"
android:inputType="textUri" /> android:inputType="textUri" />

View File

@@ -136,6 +136,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:hint="@string/add_contact_choose_a_nickname" android:hint="@string/add_contact_choose_a_nickname"
android:imeOptions="flagNoPersonalizedLearning"
android:importantForAutofill="no" android:importantForAutofill="no"
android:inputType="text|textCapWords" /> android:inputType="text|textCapWords" />

View File

@@ -27,7 +27,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/enter_password" android:hint="@string/enter_password"
android:imeOptions="actionDone" android:imeOptions="flagNoPersonalizedLearning|actionDone"
android:inputType="textPassword" android:inputType="textPassword"
android:maxLines="1" /> android:maxLines="1" />

View File

@@ -28,6 +28,7 @@
android:id="@+id/user_comment" android:id="@+id/user_comment"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:imeOptions="flagNoPersonalizedLearning"
android:inputType="textMultiLine|textCapSentences" android:inputType="textMultiLine|textCapSentences"
tools:hint="@string/describe_crash" /> tools:hint="@string/describe_crash" />
@@ -51,6 +52,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/optional_contact_email" android:hint="@string/optional_contact_email"
android:imeOptions="flagNoPersonalizedLearning"
android:inputType="textEmailAddress" android:inputType="textEmailAddress"
android:maxLines="1" /> android:maxLines="1" />
@@ -61,8 +63,8 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/margin_large" android:layout_marginLeft="@dimen/margin_large"
android:layout_marginRight="@dimen/margin_large"
android:layout_marginTop="@dimen/margin_large" android:layout_marginTop="@dimen/margin_large"
android:layout_marginRight="@dimen/margin_large"
android:text="@string/privacy_policy" android:text="@string/privacy_policy"
android:textAppearance="@style/TextAppearance.MaterialComponents.Body1" android:textAppearance="@style/TextAppearance.MaterialComponents.Body1"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"

View File

@@ -23,7 +23,7 @@
android:background="@android:color/transparent" android:background="@android:color/transparent"
android:gravity="top" android:gravity="top"
android:hint="@string/blogs_rss_feeds_import_hint" android:hint="@string/blogs_rss_feeds_import_hint"
android:imeOptions="actionDone" android:imeOptions="flagNoPersonalizedLearning|actionDone"
android:importantForAutofill="no" android:importantForAutofill="no"
android:inputType="textUri" android:inputType="textUri"
android:padding="@dimen/margin_medium" android:padding="@dimen/margin_medium"

View File

@@ -32,7 +32,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/choose_nickname" android:hint="@string/choose_nickname"
android:imeOptions="actionNext" android:imeOptions="flagNoPersonalizedLearning|actionNext"
android:inputType="text|textCapWords" android:inputType="text|textCapWords"
android:maxLines="1" /> android:maxLines="1" />

View File

@@ -33,7 +33,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/choose_password" android:hint="@string/choose_password"
android:imeOptions="actionNext" android:imeOptions="flagNoPersonalizedLearning|actionNext"
android:inputType="textPassword" android:inputType="textPassword"
android:maxLines="1"> android:maxLines="1">
@@ -71,7 +71,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/confirm_password" android:hint="@string/confirm_password"
android:imeOptions="actionNext" android:imeOptions="flagNoPersonalizedLearning|actionNext"
android:inputType="textPassword" android:inputType="textPassword"
android:maxLines="1" /> android:maxLines="1" />
</com.google.android.material.textfield.TextInputLayout> </com.google.android.material.textfield.TextInputLayout>