mirror of
https://github.com/KokaKiwi/BarInsta
synced 2025-11-20 21:06:32 +00:00
fix #467?
This commit is contained in:
parent
be250a9cee
commit
b7d233b94d
1 changed files with 2 additions and 2 deletions
|
|
@ -45,10 +45,9 @@ import static awais.instagrabber.utils.Utils.settingsHelper;
|
|||
public class MorePreferencesFragment extends BasePreferencesFragment {
|
||||
private static final String TAG = "MorePreferencesFragment";
|
||||
|
||||
private final AccountRepository accountRepository;
|
||||
private AccountRepository accountRepository;
|
||||
|
||||
public MorePreferencesFragment() {
|
||||
accountRepository = AccountRepository.getInstance(AccountDataSource.getInstance(getContext()));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -58,6 +57,7 @@ public class MorePreferencesFragment extends BasePreferencesFragment {
|
|||
// screen.addPreference(new MoreHeaderPreference(getContext()));
|
||||
final Context context = getContext();
|
||||
if (context == null) return;
|
||||
accountRepository = AccountRepository.getInstance(AccountDataSource.getInstance(context));
|
||||
final PreferenceCategory accountCategory = new PreferenceCategory(context);
|
||||
accountCategory.setTitle(R.string.account);
|
||||
accountCategory.setIconSpaceReserved(false);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue