mirror of https://github.com/M66B/FairEmail.git
Added BouncyCastle info button
This commit is contained in:
parent
0ccc25bf7f
commit
15404d30e3
|
@ -30,6 +30,7 @@ import android.net.Network;
|
|||
import android.net.NetworkCapabilities;
|
||||
import android.net.NetworkInfo;
|
||||
import android.net.NetworkRequest;
|
||||
import android.net.Uri;
|
||||
import android.os.Build;
|
||||
import android.os.Bundle;
|
||||
import android.provider.Settings;
|
||||
|
@ -94,6 +95,7 @@ public class FragmentOptionsConnection extends FragmentBase implements SharedPre
|
|||
private SwitchCompat swOpenSafe;
|
||||
private SwitchCompat swBouncyCastle;
|
||||
private SwitchCompat swFipsMode;
|
||||
private ImageButton ibBouncyCastle;
|
||||
private Button btnManage;
|
||||
private TextView tvNetworkMetered;
|
||||
private TextView tvNetworkRoaming;
|
||||
|
@ -148,6 +150,7 @@ public class FragmentOptionsConnection extends FragmentBase implements SharedPre
|
|||
swOpenSafe = view.findViewById(R.id.swOpenSafe);
|
||||
swBouncyCastle = view.findViewById(R.id.swBouncyCastle);
|
||||
swFipsMode = view.findViewById(R.id.swFipsMode);
|
||||
ibBouncyCastle = view.findViewById(R.id.ibBouncyCastle);
|
||||
btnManage = view.findViewById(R.id.btnManage);
|
||||
|
||||
tvNetworkMetered = view.findViewById(R.id.tvNetworkMetered);
|
||||
|
@ -367,6 +370,13 @@ public class FragmentOptionsConnection extends FragmentBase implements SharedPre
|
|||
}
|
||||
});
|
||||
|
||||
ibBouncyCastle.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
Helper.view(v.getContext(), Uri.parse("https://www.bouncycastle.org/"), true);
|
||||
}
|
||||
});
|
||||
|
||||
final Intent manage = getIntentConnectivity();
|
||||
PackageManager pm = getContext().getPackageManager();
|
||||
btnManage.setVisibility(
|
||||
|
|
|
@ -542,6 +542,18 @@
|
|||
app:layout_constraintTop_toBottomOf="@id/swBouncyCastle"
|
||||
app:switchPadding="12dp" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/ibBouncyCastle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="12dp"
|
||||
android:layout_marginTop="6dp"
|
||||
android:contentDescription="@string/title_info"
|
||||
android:tooltipText="@string/title_info"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/swFipsMode"
|
||||
app:srcCompat="@drawable/twotone_info_24" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btnManage"
|
||||
style="?android:attr/buttonStyleSmall"
|
||||
|
@ -552,7 +564,7 @@
|
|||
android:drawablePadding="6dp"
|
||||
android:text="@string/title_advanced_manage_connectivity"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/swFipsMode" />
|
||||
app:layout_constraintTop_toBottomOf="@id/ibBouncyCastle" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvNetworkMetered"
|
||||
|
|
Loading…
Reference in New Issue