diff options
Diffstat (limited to 'app/src/main/java/it/niedermann/owncloud/notes/android/activity/PreferencesActivity.java')
-rw-r--r-- | app/src/main/java/it/niedermann/owncloud/notes/android/activity/PreferencesActivity.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/app/src/main/java/it/niedermann/owncloud/notes/android/activity/PreferencesActivity.java b/app/src/main/java/it/niedermann/owncloud/notes/android/activity/PreferencesActivity.java index 3efc1ad5..ec1566b2 100644 --- a/app/src/main/java/it/niedermann/owncloud/notes/android/activity/PreferencesActivity.java +++ b/app/src/main/java/it/niedermann/owncloud/notes/android/activity/PreferencesActivity.java @@ -14,11 +14,13 @@ import it.niedermann.owncloud.notes.databinding.ActivityPreferencesBinding; public class PreferencesActivity extends LockedActivity { + private ActivityPreferencesBinding binding; + @Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); - ActivityPreferencesBinding binding = ActivityPreferencesBinding.inflate(getLayoutInflater()); + binding = ActivityPreferencesBinding.inflate(getLayoutInflater()); setContentView(binding.getRoot()); setSupportActionBar(binding.toolbar); @@ -27,4 +29,9 @@ public class PreferencesActivity extends LockedActivity { .replace(R.id.fragment_container_view, new PreferencesFragment()) .commit(); } + + @Override + public void applyBrand(int mainColor, int textColor) { + applyBrandToPrimaryToolbar(binding.toolbar); + } } |