Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 11537c72 authored by Moez Bhatti's avatar Moez Bhatti
Browse files

Crashlytics #862

parent 47efb678
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -81,12 +81,12 @@ public class MainActivity extends QKActivity {
        ButterKnife.bind(this);

        FragmentManager fm = getFragmentManager();
        mConversationList = (ConversationListFragment) fm.findFragmentById(R.id.content_frame);
        mConversationList = (ConversationListFragment) fm.findFragmentByTag(ConversationListFragment.TAG);
        if (mConversationList == null) {
            mConversationList = new ConversationListFragment();
        }
        FragmentTransaction menuTransaction = fm.beginTransaction();
        menuTransaction.replace(R.id.content_frame, mConversationList);
        menuTransaction.replace(R.id.content_frame, mConversationList, ConversationListFragment.TAG);
        menuTransaction.commit();

        showDialogIfNeeded(savedInstanceState);
+2 −2
Original line number Diff line number Diff line
@@ -17,13 +17,13 @@ public class ComposeActivity extends QKSwipeBackActivity {
        setTitle(R.string.title_compose);

        FragmentManager fm = getFragmentManager();
        mComposeFragment = (ComposeFragment) fm.findFragmentById(R.id.content_frame);
        mComposeFragment = (ComposeFragment) fm.findFragmentByTag(ComposeFragment.TAG);
        if (mComposeFragment == null) {
            mComposeFragment = new ComposeFragment();
        }

        fm.beginTransaction()
                .replace(R.id.content_frame, mComposeFragment)
                .replace(R.id.content_frame, mComposeFragment, ComposeFragment.TAG)
                .commit();
    }

+1 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ import com.moez.QKSMS.ui.view.StarredContactsView;
public class ComposeFragment extends QKFragment implements ActivityLauncher, RecipientProvider,
        ComposeView.OnSendListener, AdapterView.OnItemClickListener {

    private final String TAG = "ComposeFragment";
    public static final String TAG = "ComposeFragment";

    private AutoCompleteContactView mRecipients;
    private ComposeView mComposeView;
+1 −1
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@ import java.util.Observer;
public class ConversationListFragment extends QKFragment implements LoaderManager.LoaderCallbacks<Cursor>,
        RecyclerCursorAdapter.ItemClickListener<Conversation>, RecyclerCursorAdapter.MultiSelectListener, Observer {

    private final String TAG = "ConversationList";
    public static final String TAG = "ConversationListFragment";

    @Bind(R.id.empty_state) View mEmptyState;
    @Bind(R.id.empty_state_icon) ImageView mEmptyStateIcon;
+2 −2
Original line number Diff line number Diff line
@@ -82,13 +82,13 @@ public class MessageListActivity extends QKSwipeBackActivity {
        if (mThreadId != -1) {
            Log.v(TAG, "Opening thread: " + mThreadId);
            FragmentManager fm = getFragmentManager();
            MessageListFragment fragment = (MessageListFragment) fm.findFragmentById(R.id.content_frame);
            MessageListFragment fragment = (MessageListFragment) fm.findFragmentByTag(MessageListFragment.TAG);
            if (fragment == null) {
                fragment = MessageListFragment.getInstance(mThreadId, mRowId, mHighlight, mShowImmediate);
            }
            mSwipeBackLayout.setScrollChangedListener(fragment);
            FragmentTransaction menuTransaction = fm.beginTransaction();
            menuTransaction.replace(R.id.content_frame, fragment);
            menuTransaction.replace(R.id.content_frame, fragment, MessageListFragment.TAG);
            menuTransaction.commit();
        } else {
            String msg = "Couldn't open conversation: {action:";
Loading