mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 03:09:04 +01:00
Open Camera in UI Thread to prevent crash on some devices
Also properly handle back navigation when trying to add contacts.
This commit is contained in:
@@ -53,7 +53,6 @@ public abstract class BriarFragmentActivity extends BriarActivity {
|
||||
as in Gmail/Inbox.
|
||||
*/
|
||||
startFragment(ContactListFragment.newInstance());
|
||||
|
||||
} else {
|
||||
super.onBackPressed();
|
||||
}
|
||||
@@ -80,7 +79,7 @@ public abstract class BriarFragmentActivity extends BriarActivity {
|
||||
dialog.show();
|
||||
}
|
||||
|
||||
private void startFragment(BaseFragment fragment,
|
||||
public void startFragment(BaseFragment fragment,
|
||||
boolean isAddedToBackStack) {
|
||||
startFragment(fragment, 0, 0, isAddedToBackStack);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user