From 8049ddec45ea50cb983712322b500793d206cdbd Mon Sep 17 00:00:00 2001 From: Ammar Githam Date: Thu, 10 Sep 2020 20:59:57 +0900 Subject: [PATCH] Add about dialog back --- .../fragments/settings/MorePreferencesFragment.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/awais/instagrabber/fragments/settings/MorePreferencesFragment.java b/app/src/main/java/awais/instagrabber/fragments/settings/MorePreferencesFragment.java index 3762f397..f6362a2a 100644 --- a/app/src/main/java/awais/instagrabber/fragments/settings/MorePreferencesFragment.java +++ b/app/src/main/java/awais/instagrabber/fragments/settings/MorePreferencesFragment.java @@ -30,6 +30,7 @@ import awais.instagrabber.activities.Login; import awais.instagrabber.adapters.AccountSwitcherListAdapter; import awais.instagrabber.adapters.AccountSwitcherListAdapter.OnAccountClickListener; import awais.instagrabber.databinding.PrefAccountSwitcherBinding; +import awais.instagrabber.dialogs.AboutDialog; import awais.instagrabber.repositories.responses.UserInfo; import awais.instagrabber.services.ProfileService; import awais.instagrabber.services.ServiceCallback; @@ -105,7 +106,11 @@ public class MorePreferencesFragment extends BasePreferencesFragment { NavHostFragment.findNavController(this).navigate(navDirections); return true; })); - final Preference aboutPreference = getPreference(R.string.action_about, R.drawable.ic_outline_info_24, preference -> false); + final Preference aboutPreference = getPreference(R.string.action_about, R.drawable.ic_outline_info_24, preference -> { + final AboutDialog aboutDialog = new AboutDialog(); + aboutDialog.show(getChildFragmentManager(), "About"); + return true; + }); generalCategory.addPreference(aboutPreference); final Preference divider = new Preference(requireContext());