mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 07:01:05 +00:00
Small improvement
This commit is contained in:
parent
d46bd9159f
commit
5ed3817b95
1 changed files with 4 additions and 2 deletions
|
@ -3614,11 +3614,13 @@ public class FragmentCompose extends FragmentBase {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onTextChanged(CharSequence s, int start, int before, int count) {
|
public void onTextChanged(CharSequence s, int start, int before, int count) {
|
||||||
tvInsecure.setVisibility("http".equals(Uri.parse(s.toString()).getScheme()) ? View.VISIBLE : View.GONE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void afterTextChanged(Editable s) {
|
public void afterTextChanged(Editable editable) {
|
||||||
|
Uri uri = Uri.parse(editable.toString());
|
||||||
|
tvInsecure.setVisibility(!uri.isOpaque() &&
|
||||||
|
"http".equals(uri.getScheme()) ? View.VISIBLE : View.GONE);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue