|
|
|
@ -51,6 +51,7 @@ import androidx.annotation.Nullable;
|
|
|
|
|
import androidx.appcompat.app.ActionBarDrawerToggle;
|
|
|
|
|
import androidx.appcompat.app.AlertDialog;
|
|
|
|
|
import androidx.core.app.NotificationCompat;
|
|
|
|
|
import androidx.core.content.ContextCompat;
|
|
|
|
|
import androidx.core.widget.NestedScrollView;
|
|
|
|
|
import androidx.fragment.app.Fragment;
|
|
|
|
|
import androidx.fragment.app.FragmentManager;
|
|
|
|
@ -231,6 +232,14 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|
|
|
|
|
|
|
|
|
drawerContainer = findViewById(R.id.drawer_container);
|
|
|
|
|
|
|
|
|
|
boolean beige = prefs.getBoolean("cards", true) &&
|
|
|
|
|
prefs.getBoolean("beige", true) &&
|
|
|
|
|
!Helper.isDarkTheme(ActivityView.this);
|
|
|
|
|
|
|
|
|
|
if (beige)
|
|
|
|
|
drawerContainer.setBackgroundColor(
|
|
|
|
|
ContextCompat.getColor(ActivityView.this, R.color.lightColorBackground_cards_beige));
|
|
|
|
|
|
|
|
|
|
int drawerWidth;
|
|
|
|
|
DisplayMetrics dm = getResources().getDisplayMetrics();
|
|
|
|
|
if (portrait || !landscape3) {
|
|
|
|
@ -256,7 +265,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|
|
|
|
|
|
|
|
|
rvAccount = drawerContainer.findViewById(R.id.rvAccount);
|
|
|
|
|
rvAccount.setLayoutManager(new LinearLayoutManager(this));
|
|
|
|
|
adapterNavAccount = new AdapterNavAccount(this, this);
|
|
|
|
|
adapterNavAccount = new AdapterNavAccount(this, this, beige);
|
|
|
|
|
rvAccount.setAdapter(adapterNavAccount);
|
|
|
|
|
|
|
|
|
|
boolean nav_account = prefs.getBoolean("nav_account", true);
|
|
|
|
@ -278,7 +287,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|
|
|
|
|
|
|
|
|
rvUnified = drawerContainer.findViewById(R.id.rvUnified);
|
|
|
|
|
rvUnified.setLayoutManager(new LinearLayoutManager(this));
|
|
|
|
|
adapterNavUnified = new AdapterNavUnified(this, this);
|
|
|
|
|
adapterNavUnified = new AdapterNavUnified(this, this, beige);
|
|
|
|
|
rvUnified.setAdapter(adapterNavUnified);
|
|
|
|
|
|
|
|
|
|
boolean unified_system = prefs.getBoolean("unified_system", true);
|
|
|
|
@ -298,12 +307,12 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|
|
|
|
// Navigation folders
|
|
|
|
|
rvFolder = drawerContainer.findViewById(R.id.rvFolder);
|
|
|
|
|
rvFolder.setLayoutManager(new LinearLayoutManager(this));
|
|
|
|
|
adapterNavFolder = new AdapterNavFolder(this, this);
|
|
|
|
|
adapterNavFolder = new AdapterNavFolder(this, this, beige);
|
|
|
|
|
rvFolder.setAdapter(adapterNavFolder);
|
|
|
|
|
|
|
|
|
|
rvMenu = drawerContainer.findViewById(R.id.rvMenu);
|
|
|
|
|
rvMenu.setLayoutManager(new LinearLayoutManager(this));
|
|
|
|
|
adapterNavMenu = new AdapterNavMenu(this, this);
|
|
|
|
|
adapterNavMenu = new AdapterNavMenu(this, this, beige);
|
|
|
|
|
rvMenu.setAdapter(adapterNavMenu);
|
|
|
|
|
|
|
|
|
|
// Extra menus
|
|
|
|
@ -312,7 +321,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|
|
|
|
rvMenuExtra = drawerContainer.findViewById(R.id.rvMenuExtra);
|
|
|
|
|
LinearLayoutManager llm = new LinearLayoutManager(this);
|
|
|
|
|
rvMenuExtra.setLayoutManager(llm);
|
|
|
|
|
adapterNavMenuExtra = new AdapterNavMenu(this, this);
|
|
|
|
|
adapterNavMenuExtra = new AdapterNavMenu(this, this, beige);
|
|
|
|
|
rvMenuExtra.setAdapter(adapterNavMenuExtra);
|
|
|
|
|
|
|
|
|
|
final Drawable d = getDrawable(R.drawable.divider);
|
|
|
|
|