Commit 785257cc authored by Thomas's avatar Thomas
Browse files

Fix potential crashes

parent 299df2cd
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -143,6 +143,9 @@ public class SpannableHelper {

            int start = content.getSpanStart(span);
            int end = content.getSpanEnd(span);
            if (start < 0 || end > content.length()) {
                continue;
            }
            content.removeSpan(span);
            //Get the matching word associated to the URL
            String word = content.subSequence(start, end).toString();
+1 −1
Original line number Diff line number Diff line
@@ -313,7 +313,7 @@ public class NotificationAdapter extends RecyclerView.Adapter<RecyclerView.ViewH
                notification.filteredByApp = null;
                notifyItemChanged(position);
            });
        } else {
        } else if (notification.status != null) {
            StatusAdapter.StatusViewHolder holderStatus = (StatusAdapter.StatusViewHolder) viewHolder;
            SharedPreferences sharedpreferences = PreferenceManager.getDefaultSharedPreferences(context);
            if (sharedpreferences.getBoolean(context.getString(R.string.SET_CARDVIEW), false)) {