Use cards for main setup

This commit is contained in:
M66B 2021-05-11 22:10:47 +02:00
parent 1733299393
commit 24373b4be9
2 changed files with 584 additions and 547 deletions

View File

@ -51,6 +51,7 @@ import androidx.annotation.Nullable;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.widget.PopupMenu;
import androidx.constraintlayout.widget.Group;
import androidx.core.content.ContextCompat;
import androidx.fragment.app.FragmentActivity;
import androidx.lifecycle.Observer;
import androidx.localbroadcastmanager.content.LocalBroadcastManager;
@ -91,7 +92,6 @@ public class FragmentSetup extends FragmentBase {
private Button btnInbox;
private Group grpManual;
private Group grpDoze;
private Group grpBackgroundRestricted;
private Group grpDataSaver;
@ -157,7 +157,6 @@ public class FragmentSetup extends FragmentBase {
btnInbox = view.findViewById(R.id.btnInbox);
grpManual = view.findViewById(R.id.grpManual);
grpDoze = view.findViewById(R.id.grpDoze);
grpBackgroundRestricted = view.findViewById(R.id.grpBackgroundRestricted);
grpDataSaver = view.findViewById(R.id.grpDataSaver);
@ -404,6 +403,9 @@ public class FragmentSetup extends FragmentBase {
});
// Initialize
if (!Helper.isDarkTheme(getContext()))
view.setBackgroundColor(ContextCompat.getColor(getContext(), R.color.lightColorBackground_cards_beige));
btnIdentity.setEnabled(false);
tvNoComposable.setVisibility(View.GONE);
@ -416,7 +418,6 @@ public class FragmentSetup extends FragmentBase {
btnInbox.setEnabled(false);
grpDoze.setVisibility(Build.VERSION.SDK_INT < Build.VERSION_CODES.M ? View.GONE : View.VISIBLE);
grpBackgroundRestricted.setVisibility(View.GONE);
grpDataSaver.setVisibility(View.GONE);

File diff suppressed because it is too large Load Diff