From c0269fcfa876b9c5cf309b2006462b4d09c5ef95 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期三, 28 七月 2021 18:09:02 +0800
Subject: [PATCH] 包名及目录修改

---
 MDownloadProvider/src/com/mozillaonline/providers/downloads/ui/DownloadAdapter.java |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/MDownloadProvider/src/com/mozillaonline/providers/downloads/ui/DownloadAdapter.java b/MDownloadProvider/src/com/mozillaonline/providers/downloads/ui/DownloadAdapter.java
index 74c0443..154902e 100644
--- a/MDownloadProvider/src/com/mozillaonline/providers/downloads/ui/DownloadAdapter.java
+++ b/MDownloadProvider/src/com/mozillaonline/providers/downloads/ui/DownloadAdapter.java
@@ -122,7 +122,7 @@
 	int progress = getProgressValue(totalBytes, currentBytes);
 
 	boolean indeterminate = status == DownloadManager.STATUS_PENDING;
-	ProgressBar progressBar = (ProgressBar) convertView
+	ProgressBar progressBar = convertView
 		.findViewById(R.id.download_progress);
 	progressBar.setIndeterminate(indeterminate);
 	if (!indeterminate) {
@@ -140,7 +140,7 @@
 		mResources.getString(getStatusStringId(status)));
 	setTextForView(convertView, R.id.last_modified_date, getDateString());
 
-	CheckBox checkBox = (CheckBox) convertView
+	CheckBox checkBox = convertView
 		.findViewById(R.id.download_checkbox);
 	checkBox.setChecked(mDownloadSelectionListener
 		.isDownloadSelected(downloadId));
@@ -204,7 +204,7 @@
 
     private void retrieveAndSetIcon(View convertView) {
 	String mediaType = mCursor.getString(mMediaTypeColumnId);
-	ImageView iconView = (ImageView) convertView
+	ImageView iconView = convertView
 		.findViewById(R.id.download_icon);
 	iconView.setVisibility(View.INVISIBLE);
 
@@ -228,7 +228,7 @@
     }
 
     private void setTextForView(View parent, int textViewId, String text) {
-	TextView view = (TextView) parent.findViewById(textViewId);
+	TextView view = parent.findViewById(textViewId);
 	view.setText(text);
     }
 

--
Gitblit v1.8.0