mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 11:42:16 -05:00
Add @Override compiler check
This commit is contained in:
parent
190d028669
commit
5366a07f28
@ -345,6 +345,7 @@ public class MessageList
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
runOnUiThread(new Runnable() {
|
runOnUiThread(new Runnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
for (MessageInfoHolder message : messages) {
|
for (MessageInfoHolder message : messages) {
|
||||||
if (message != null) {
|
if (message != null) {
|
||||||
@ -373,6 +374,7 @@ public class MessageList
|
|||||||
}
|
}
|
||||||
final boolean wasEmpty = mAdapter.messages.isEmpty();
|
final boolean wasEmpty = mAdapter.messages.isEmpty();
|
||||||
runOnUiThread(new Runnable() {
|
runOnUiThread(new Runnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
for (final MessageInfoHolder message : messages) {
|
for (final MessageInfoHolder message : messages) {
|
||||||
if (mFolderName == null || (message.folder != null && message.folder.name.equals(mFolderName))) {
|
if (mFolderName == null || (message.folder != null && message.folder.name.equals(mFolderName))) {
|
||||||
@ -401,6 +403,7 @@ public class MessageList
|
|||||||
|
|
||||||
private void resetUnreadCount() {
|
private void resetUnreadCount() {
|
||||||
runOnUiThread(new Runnable() {
|
runOnUiThread(new Runnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
resetUnreadCountOnThread();
|
resetUnreadCountOnThread();
|
||||||
}
|
}
|
||||||
@ -424,6 +427,7 @@ public class MessageList
|
|||||||
final Comparator<MessageInfoHolder> chainComparator = getComparator();
|
final Comparator<MessageInfoHolder> chainComparator = getComparator();
|
||||||
|
|
||||||
runOnUiThread(new Runnable() {
|
runOnUiThread(new Runnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
synchronized (mAdapter.messages) {
|
synchronized (mAdapter.messages) {
|
||||||
Collections.sort(mAdapter.messages, chainComparator);
|
Collections.sort(mAdapter.messages, chainComparator);
|
||||||
@ -481,6 +485,7 @@ public class MessageList
|
|||||||
|
|
||||||
private void refreshTitle() {
|
private void refreshTitle() {
|
||||||
runOnUiThread(new Runnable() {
|
runOnUiThread(new Runnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
refreshTitleOnThread();
|
refreshTitleOnThread();
|
||||||
}
|
}
|
||||||
@ -534,6 +539,7 @@ public class MessageList
|
|||||||
|
|
||||||
public void progress(final boolean progress) {
|
public void progress(final boolean progress) {
|
||||||
runOnUiThread(new Runnable() {
|
runOnUiThread(new Runnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
showProgressIndicator(progress);
|
showProgressIndicator(progress);
|
||||||
}
|
}
|
||||||
@ -767,6 +773,7 @@ public class MessageList
|
|||||||
|
|
||||||
mAdapter.pruneDirtyMessages();
|
mAdapter.pruneDirtyMessages();
|
||||||
runOnUiThread(new Runnable() {
|
runOnUiThread(new Runnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
mAdapter.notifyDataSetChanged();
|
mAdapter.notifyDataSetChanged();
|
||||||
restoreListState();
|
restoreListState();
|
||||||
@ -813,6 +820,7 @@ public class MessageList
|
|||||||
// Gesture detection
|
// Gesture detection
|
||||||
gestureDetector = new GestureDetector(new MyGestureDetector());
|
gestureDetector = new GestureDetector(new MyGestureDetector());
|
||||||
gestureListener = new View.OnTouchListener() {
|
gestureListener = new View.OnTouchListener() {
|
||||||
|
@Override
|
||||||
public boolean onTouch(View v, MotionEvent event) {
|
public boolean onTouch(View v, MotionEvent event) {
|
||||||
if (gestureDetector.onTouchEvent(event)) {
|
if (gestureDetector.onTouchEvent(event)) {
|
||||||
return true;
|
return true;
|
||||||
@ -1974,6 +1982,7 @@ public class MessageList
|
|||||||
}
|
}
|
||||||
|
|
||||||
private final OnClickListener flagClickListener = new OnClickListener() {
|
private final OnClickListener flagClickListener = new OnClickListener() {
|
||||||
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
// Perform action on clicks
|
// Perform action on clicks
|
||||||
MessageInfoHolder message = (MessageInfoHolder) getItem((Integer)v.getTag());
|
MessageInfoHolder message = (MessageInfoHolder) getItem((Integer)v.getTag());
|
||||||
@ -2461,12 +2470,15 @@ public class MessageList
|
|||||||
mHandler.sortMessages();
|
mHandler.sortMessages();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void onAnimationEnd(Animation animation) {
|
public void onAnimationEnd(Animation animation) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void onAnimationRepeat(Animation animation) {
|
public void onAnimationRepeat(Animation animation) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void onAnimationStart(Animation animation) {
|
public void onAnimationStart(Animation animation) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user