mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-22 14:47:29 +00:00
Add about dialog back
This commit is contained in:
parent
9431d72e72
commit
8049ddec45
@ -30,6 +30,7 @@ import awais.instagrabber.activities.Login;
|
|||||||
import awais.instagrabber.adapters.AccountSwitcherListAdapter;
|
import awais.instagrabber.adapters.AccountSwitcherListAdapter;
|
||||||
import awais.instagrabber.adapters.AccountSwitcherListAdapter.OnAccountClickListener;
|
import awais.instagrabber.adapters.AccountSwitcherListAdapter.OnAccountClickListener;
|
||||||
import awais.instagrabber.databinding.PrefAccountSwitcherBinding;
|
import awais.instagrabber.databinding.PrefAccountSwitcherBinding;
|
||||||
|
import awais.instagrabber.dialogs.AboutDialog;
|
||||||
import awais.instagrabber.repositories.responses.UserInfo;
|
import awais.instagrabber.repositories.responses.UserInfo;
|
||||||
import awais.instagrabber.services.ProfileService;
|
import awais.instagrabber.services.ProfileService;
|
||||||
import awais.instagrabber.services.ServiceCallback;
|
import awais.instagrabber.services.ServiceCallback;
|
||||||
@ -105,7 +106,11 @@ public class MorePreferencesFragment extends BasePreferencesFragment {
|
|||||||
NavHostFragment.findNavController(this).navigate(navDirections);
|
NavHostFragment.findNavController(this).navigate(navDirections);
|
||||||
return true;
|
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);
|
generalCategory.addPreference(aboutPreference);
|
||||||
|
|
||||||
final Preference divider = new Preference(requireContext());
|
final Preference divider = new Preference(requireContext());
|
||||||
|
Loading…
Reference in New Issue
Block a user