Fixed no going back to GroupInfo once back has been pressed issue
This commit is contained in:
parent
35da6ddfd0
commit
6c406d42a9
4 changed files with 11 additions and 4 deletions
|
@ -370,6 +370,11 @@ public class LinphoneActivity extends LinphoneGenericActivity implements OnClick
|
|||
newProxyConfig = true;
|
||||
}
|
||||
|
||||
public void popBackStack() {
|
||||
getFragmentManager().popBackStackImmediate();
|
||||
currentFragment = FragmentsAvailable.EMPTY;
|
||||
}
|
||||
|
||||
private void changeCurrentFragment(FragmentsAvailable newFragmentType, Bundle extras) {
|
||||
changeCurrentFragment(newFragmentType, extras, false);
|
||||
}
|
||||
|
|
|
@ -39,6 +39,7 @@ import android.widget.RelativeLayout;
|
|||
import android.widget.TextView;
|
||||
|
||||
import org.linphone.contacts.ContactAddress;
|
||||
import org.linphone.mediastream.Log;
|
||||
import org.linphone.ui.ContactSelectView;
|
||||
import org.linphone.receivers.ContactsUpdatedListener;
|
||||
import org.linphone.activities.LinphoneActivity;
|
||||
|
@ -279,7 +280,7 @@ public class ChatCreationFragment extends Fragment implements View.OnClickListen
|
|||
allContactsSelected.setVisibility(View.INVISIBLE);
|
||||
updateList();
|
||||
} else if (id == R.id.back) {
|
||||
getFragmentManager().popBackStackImmediate();
|
||||
LinphoneActivity.instance().popBackStack();
|
||||
} else if (id == R.id.next) {
|
||||
if (contactsSelected.size() == 1) {
|
||||
LinphoneActivity.instance().displayChat(contactsSelected.get(0).getAddress(), "", "");
|
||||
|
|
|
@ -86,7 +86,7 @@ public class GroupChatFragment extends Fragment implements ChatRoomListener {
|
|||
mBackButton.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
getFragmentManager().popBackStackImmediate();
|
||||
LinphoneActivity.instance().popBackStack();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -32,6 +32,7 @@ import android.widget.LinearLayout;
|
|||
import android.widget.ListView;
|
||||
|
||||
import org.linphone.R;
|
||||
import org.linphone.activities.LinphoneActivity;
|
||||
import org.linphone.contacts.ContactAddress;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
@ -78,7 +79,7 @@ public class GroupInfoFragment extends Fragment {
|
|||
mBackButton.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
getFragmentManager().popBackStackImmediate();
|
||||
LinphoneActivity.instance().popBackStack();
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -100,7 +101,7 @@ public class GroupInfoFragment extends Fragment {
|
|||
if (mIsAlreadyCreatedGroup) {
|
||||
//TODO
|
||||
} else {
|
||||
getFragmentManager().popBackStackImmediate();
|
||||
LinphoneActivity.instance().popBackStack();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue