mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-31 20:25:38 +00:00
Small layout improvement
This commit is contained in:
parent
a6652350e6
commit
e930649a3f
1 changed files with 3 additions and 0 deletions
|
@ -27,6 +27,7 @@ import android.content.Intent;
|
|||
import android.content.SharedPreferences;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.graphics.Paint;
|
||||
import android.graphics.Typeface;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.net.ConnectivityManager;
|
||||
import android.net.Uri;
|
||||
|
@ -385,6 +386,7 @@ public class FragmentSetup extends FragmentBase {
|
|||
|
||||
tvDozeDone.setText(ignoring ? R.string.title_setup_done : R.string.title_setup_to_do);
|
||||
tvDozeDone.setTextColor(ignoring ? textColorPrimary : colorWarning);
|
||||
tvDozeDone.setTypeface(tvDozeDone.getTypeface(), ignoring ? Typeface.NORMAL : Typeface.BOLD);
|
||||
tvDozeDone.setCompoundDrawablesWithIntrinsicBounds(ignoring ? check : null, null, null, null);
|
||||
|
||||
// https://developer.android.com/training/basics/network-ops/data-saver.html
|
||||
|
@ -414,6 +416,7 @@ public class FragmentSetup extends FragmentBase {
|
|||
|
||||
tvPermissionsDone.setText(granted ? R.string.title_setup_done : R.string.title_setup_to_do);
|
||||
tvPermissionsDone.setTextColor(granted ? textColorPrimary : colorWarning);
|
||||
tvPermissionsDone.setTypeface(tvPermissionsDone.getTypeface(), granted ? Typeface.NORMAL : Typeface.BOLD);
|
||||
tvPermissionsDone.setCompoundDrawablesWithIntrinsicBounds(granted ? check : null, null, null, null);
|
||||
btnPermissions.setEnabled(!granted);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue