@@ -19,14 +19,14 @@ import androidx.compose.foundation.layout.fillMaxWidth
1919import androidx.compose.foundation.layout.padding
2020import androidx.compose.foundation.rememberScrollState
2121import androidx.compose.foundation.verticalScroll
22- import androidx.compose.material .Card
23- import androidx.compose.material .Checkbox
24- import androidx.compose.material .MaterialTheme
25- import androidx.compose.material .Scaffold
26- import androidx.compose.material .SnackbarHost
27- import androidx.compose.material .SnackbarHostState
28- import androidx.compose.material .Text
29- import androidx.compose.material .TextButton
22+ import androidx.compose.material3 .Card
23+ import androidx.compose.material3 .Checkbox
24+ import androidx.compose.material3 .MaterialTheme
25+ import androidx.compose.material3 .Scaffold
26+ import androidx.compose.material3 .SnackbarHost
27+ import androidx.compose.material3 .SnackbarHostState
28+ import androidx.compose.material3 .Text
29+ import androidx.compose.material3 .TextButton
3030import androidx.compose.runtime.Composable
3131import androidx.compose.runtime.LaunchedEffect
3232import androidx.compose.runtime.getValue
@@ -42,8 +42,6 @@ import androidx.compose.ui.tooling.preview.Preview
4242import androidx.compose.ui.unit.dp
4343import androidx.lifecycle.AndroidViewModel
4444import androidx.lifecycle.viewModelScope
45- import kotlinx.coroutines.Dispatchers
46- import kotlinx.coroutines.launch
4745import java.io.ByteArrayInputStream
4846import java.security.cert.CertificateFactory
4947import java.security.cert.CertificateParsingException
@@ -52,6 +50,8 @@ import java.security.spec.MGF1ParameterSpec.SHA1
5250import java.security.spec.MGF1ParameterSpec.SHA256
5351import java.text.DateFormat
5452import java.util.logging.Level
53+ import kotlinx.coroutines.Dispatchers
54+ import kotlinx.coroutines.launch
5555
5656class TrustCertificateActivity : ComponentActivity () {
5757
@@ -136,7 +136,7 @@ class TrustCertificateActivity : ComponentActivity() {
136136 ) {
137137 Text (
138138 text = stringResource(R .string.trust_certificate_unknown_certificate_found),
139- style = MaterialTheme .typography.body1 ,
139+ style = MaterialTheme .typography.bodySmall ,
140140 modifier = Modifier
141141 .fillMaxWidth()
142142 .padding(bottom = 16 .dp)
@@ -149,7 +149,7 @@ class TrustCertificateActivity : ComponentActivity() {
149149
150150 Text (
151151 text = stringResource(R .string.trust_certificate_reset_info),
152- style = MaterialTheme .typography.body1 ,
152+ style = MaterialTheme .typography.bodySmall ,
153153 modifier = Modifier
154154 .fillMaxWidth()
155155 .padding(top = 16 .dp),
@@ -174,7 +174,7 @@ class TrustCertificateActivity : ComponentActivity() {
174174 ) {
175175 Text (
176176 text = stringResource(R .string.trust_certificate_x509_certificate_details),
177- style = MaterialTheme .typography.h5 ,
177+ style = MaterialTheme .typography.titleMedium ,
178178 modifier = Modifier
179179 .fillMaxWidth()
180180 .padding(bottom = 16 .dp),
@@ -201,14 +201,14 @@ class TrustCertificateActivity : ComponentActivity() {
201201 if (sha1 != null || sha256 != null ) {
202202 Text (
203203 text = stringResource(R .string.trust_certificate_fingerprints).uppercase(),
204- style = MaterialTheme .typography.body2 ,
204+ style = MaterialTheme .typography.bodyMedium ,
205205 modifier = Modifier .fillMaxWidth(),
206206 )
207207
208208 if (sha1 != null )
209209 Text (
210210 text = sha1,
211- style = MaterialTheme .typography.body2 ,
211+ style = MaterialTheme .typography.bodyMedium ,
212212 modifier = Modifier
213213 .fillMaxWidth()
214214 .padding(bottom = 16 .dp, top = 4 .dp),
@@ -217,7 +217,7 @@ class TrustCertificateActivity : ComponentActivity() {
217217 if (sha256 != null )
218218 Text (
219219 text = sha256,
220- style = MaterialTheme .typography.body2 ,
220+ style = MaterialTheme .typography.bodyMedium ,
221221 modifier = Modifier
222222 .fillMaxWidth()
223223 .padding(bottom = 16 .dp, top = 4 .dp),
@@ -242,7 +242,7 @@ class TrustCertificateActivity : ComponentActivity() {
242242 }
243243 .weight(1f )
244244 .padding(bottom = 8 .dp),
245- style = MaterialTheme .typography.body2
245+ style = MaterialTheme .typography.bodyMedium
246246 )
247247 }
248248
@@ -274,13 +274,13 @@ class TrustCertificateActivity : ComponentActivity() {
274274 fun InfoPack (@StringRes labelStringRes : Int , text : String ) {
275275 Text (
276276 text = stringResource(labelStringRes).uppercase(),
277- style = MaterialTheme .typography.body2 ,
277+ style = MaterialTheme .typography.bodyMedium ,
278278 modifier = Modifier
279279 .fillMaxWidth(),
280280 )
281281 Text (
282282 text = text,
283- style = MaterialTheme .typography.body1 ,
283+ style = MaterialTheme .typography.bodySmall ,
284284 modifier = Modifier
285285 .fillMaxWidth()
286286 .padding(bottom = 16 .dp),
0 commit comments