fixed bug causes dm notification not clickable
fixed scroll to top doesn't clear unread count
This commit is contained in:
parent
9336704677
commit
196ddfe9cb
|
@ -360,8 +360,11 @@ public abstract class AbsStatusesFragment<Data> extends AbsContentListFragment<A
|
|||
|
||||
@Override
|
||||
public final boolean scrollToStart() {
|
||||
saveReadPosition();
|
||||
return super.scrollToStart();
|
||||
final boolean result = super.scrollToStart();
|
||||
if (result) {
|
||||
saveReadPosition();
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -1174,7 +1174,7 @@ public final class TwidereDataProvider extends ContentProvider implements Consta
|
|||
builder.setContentText(notificationContent);
|
||||
builder.setCategory(NotificationCompat.CATEGORY_SOCIAL);
|
||||
builder.setContentIntent(getContentIntent(context, AUTHORITY_DIRECT_MESSAGES, accountId));
|
||||
builder.setContentIntent(getDeleteIntent(context, AUTHORITY_DIRECT_MESSAGES, accountId, positions));
|
||||
builder.setDeleteIntent(getDeleteIntent(context, AUTHORITY_DIRECT_MESSAGES, accountId, positions));
|
||||
builder.setNumber(messagesCount);
|
||||
builder.setWhen(when);
|
||||
builder.setStyle(style);
|
||||
|
|
Loading…
Reference in New Issue