Commit b0e01e5b authored by Thomas's avatar Thomas
Browse files

Search bar: Display suggestion when starting by @ or #

parent 4ec84961
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -522,9 +522,8 @@ public class Helper {
        long months = days / 30;
        long years = days / 365;

        String format = DateFormat.getDateInstance(DateFormat.SHORT).format(date);
        if (years > 0) {
            return format;
            return DateFormat.getDateInstance(DateFormat.SHORT, Locale.getDefault()).format(date);
        } else if (months > 0 || days > 7) {
            //Removes the year depending of the locale from DateFormat.SHORT format
            SimpleDateFormat df = (SimpleDateFormat) DateFormat.getDateInstance(DateFormat.SHORT, Locale.getDefault());
+5 −0
Original line number Diff line number Diff line
@@ -464,6 +464,11 @@ public class PinnedTimelineHelper {
                                break;
                            case NITTER:
                                item.setIcon(R.drawable.nitter);
                                if (pinnedTimeline.remoteInstance.displayName.trim().length() > 0) {
                                    item.setTitle(pinnedTimeline.remoteInstance.displayName);
                                } else {
                                    item.setTitle(pinnedTimeline.remoteInstance.host);
                                }
                                break;
                        }
                        break;