Skip to content
Snippets Groups Projects
Commit c4997bdc authored by Adrien Béraud's avatar Adrien Béraud
Browse files

blacklist: use child fragment manager

Change-Id: I299efc7f572754453e2e8206363df914afe3bdfb
parent fba62e51
No related branches found
No related tags found
No related merge requests found
......@@ -171,7 +171,7 @@ public class AccountEditionFragment extends BaseSupportFragment<AccountEditionPr
Bundle args = new Bundle();
args.putString(ACCOUNT_ID_KEY, accountId);
blackListFragment.setArguments(args);
requireFragmentManager().beginTransaction()
getChildFragmentManager().beginTransaction()
.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE)
.addToBackStack(BlackListFragment.TAG)
.replace(R.id.fragment_container, blackListFragment, BlackListFragment.TAG)
......
......@@ -81,7 +81,7 @@ public class BlackListPresenter extends RootPresenter<BlackListView> {
mCompositeDisposable.add(mAccountService
.getAccountSingle(accountID)
.flatMapObservable(Account::getBannedContactsUpdates)
.subscribeOn(mUiScheduler)
.observeOn(mUiScheduler)
.subscribe(this::updateList, e -> Log.e(TAG, "Error showing blacklist", e)));
mAccountID = accountID;
}
......@@ -89,6 +89,5 @@ public class BlackListPresenter extends RootPresenter<BlackListView> {
public void unblockClicked(CallContact contact) {
String contactId = contact.getPhones().get(0).getNumber().getRawRingId();
mAccountService.addContact(mAccountID, contactId);
//updateList();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment