mirror of https://github.com/M66B/FairEmail.git
Added ID info button
This commit is contained in:
parent
8cd2d68a8b
commit
ffa613ca2c
|
@ -77,6 +77,7 @@ public class FragmentOptionsPrivacy extends FragmentBase implements SharedPrefer
|
|||
private TextView tvAutoLockNavHint;
|
||||
private SwitchCompat swClientId;
|
||||
private TextView tvClientId;
|
||||
private ImageButton ibClientId;
|
||||
private SwitchCompat swDisplayHidden;
|
||||
private SwitchCompat swIncognitoKeyboard;
|
||||
private ImageButton ibIncognitoKeyboard;
|
||||
|
@ -133,6 +134,7 @@ public class FragmentOptionsPrivacy extends FragmentBase implements SharedPrefer
|
|||
tvAutoLockNavHint = view.findViewById(R.id.tvAutoLockNavHint);
|
||||
swClientId = view.findViewById(R.id.swClientId);
|
||||
tvClientId = view.findViewById(R.id.tvClientId);
|
||||
ibClientId = view.findViewById(R.id.ibClientId);
|
||||
swDisplayHidden = view.findViewById(R.id.swDisplayHidden);
|
||||
swIncognitoKeyboard = view.findViewById(R.id.swIncognitoKeyboard);
|
||||
ibIncognitoKeyboard = view.findViewById(R.id.ibIncognitoKeyboard);
|
||||
|
@ -307,6 +309,13 @@ public class FragmentOptionsPrivacy extends FragmentBase implements SharedPrefer
|
|||
}
|
||||
});
|
||||
|
||||
ibClientId.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
Helper.view(v.getContext(), Uri.parse(Helper.ID_COMMAND_URI), true);
|
||||
}
|
||||
});
|
||||
|
||||
swDisplayHidden.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
||||
@Override
|
||||
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
||||
|
|
|
@ -177,6 +177,7 @@ public class Helper {
|
|||
static final String SUPPORT_URI = "https://contact.faircode.eu/";
|
||||
static final String TEST_URI = "https://play.google.com/apps/testing/" + BuildConfig.APPLICATION_ID;
|
||||
static final String BIMI_PRIVACY_URI = "https://datatracker.ietf.org/doc/html/draft-brotman-ietf-bimi-guidance-03#section-7.4";
|
||||
static final String ID_COMMAND_URI = "https://datatracker.ietf.org/doc/html/rfc2971#section-3.1";
|
||||
static final String FAVICON_PRIVACY_URI = "https://en.wikipedia.org/wiki/Favicon";
|
||||
static final String GRAVATAR_PRIVACY_URI = "https://en.wikipedia.org/wiki/Gravatar";
|
||||
static final String LICENSE_URI = "https://www.gnu.org/licenses/gpl-3.0.html";
|
||||
|
|
|
@ -391,6 +391,17 @@
|
|||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/swClientId" />
|
||||
|
||||
<eu.faircode.email.FixedImageButton
|
||||
android:id="@+id/ibClientId"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="6dp"
|
||||
android:contentDescription="@string/title_info"
|
||||
android:tooltipText="@string/title_info"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/tvClientId"
|
||||
app:srcCompat="@drawable/twotone_info_24" />
|
||||
|
||||
<androidx.appcompat.widget.SwitchCompat
|
||||
android:id="@+id/swDisplayHidden"
|
||||
android:layout_width="0dp"
|
||||
|
@ -399,7 +410,7 @@
|
|||
android:text="@string/title_advanced_display_hidden"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/tvClientId"
|
||||
app:layout_constraintTop_toBottomOf="@id/ibClientId"
|
||||
app:switchPadding="12dp" />
|
||||
|
||||
<eu.faircode.email.FixedTextView
|
||||
|
|
Loading…
Reference in New Issue