Messaging: Further code improvements
* Remove redundant casts * getParcelable(ArrayList|Exra) without class argument is deprecated * ViewPager.setOnPageChangeListener -> addOnPageChangeListener * RecyclerView.setOnScrollListener -> addOnScrollListener * Remove unused initializations * Remove unused code Change-Id: I21beb6c90c675a4f2cfd7e3d5ebbd18b745f5911
This commit is contained in:
@@ -264,7 +264,7 @@ public class WidgetConversationService extends RemoteViewsService {
|
||||
int titleResId = -1;
|
||||
int statusResId = -1;
|
||||
boolean showInRed = false;
|
||||
String statusText = null;
|
||||
String statusText;
|
||||
switch(message.getStatus()) {
|
||||
case MessageData.BUGLE_STATUS_INCOMING_AUTO_DOWNLOADING:
|
||||
case MessageData.BUGLE_STATUS_INCOMING_MANUAL_DOWNLOADING:
|
||||
@@ -327,7 +327,7 @@ public class WidgetConversationService extends RemoteViewsService {
|
||||
case MessageData.BUGLE_STATUS_INCOMING_COMPLETE:
|
||||
default:
|
||||
if (!message.getCanClusterWithNextMessage()) {
|
||||
statusText = Dates.getWidgetTimeString(message.getReceivedTimeStamp(),
|
||||
Dates.getWidgetTimeString(message.getReceivedTimeStamp(),
|
||||
false /*abbreviated*/).toString();
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user