Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3315)

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadManagerUi.java

Issue 2294073002: [Android] Fix a bug in download manager that spinner shows forever (Closed)
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadManagerUi.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadManagerUi.java b/chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadManagerUi.java
index 18298010c23f5f939816a8802e8e9eb06364f170..fb0c5e94a8befb4c9905ce97d2f9b7e7a087e594 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadManagerUi.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadManagerUi.java
@@ -148,16 +148,15 @@ public class DownloadManagerUi implements OnMenuItemClickListener {
mMainView = (ViewGroup) LayoutInflater.from(activity).inflate(R.layout.download_main, null);
- mHistoryAdapter = new DownloadHistoryAdapter(isOffTheRecord, parentComponent);
- mHistoryAdapter.initialize(mBackendProvider);
- addObserver(mHistoryAdapter);
- mHistoryAdapter.registerAdapterDataObserver(mAdapterObserver);
-
mEmptyView = mMainView.findViewById(R.id.empty_view);
-
mLoadingView = (LoadingView) mMainView.findViewById(R.id.loading_view);
mLoadingView.showLoadingUI();
+ mHistoryAdapter = new DownloadHistoryAdapter(isOffTheRecord, parentComponent);
+ mHistoryAdapter.registerAdapterDataObserver(mAdapterObserver);
+ mHistoryAdapter.initialize(mBackendProvider);
+ addObserver(mHistoryAdapter);
+
mSpaceDisplay = new SpaceDisplay(mMainView, mHistoryAdapter);
mHistoryAdapter.registerAdapterDataObserver(mSpaceDisplay);
mSpaceDisplay.onChanged();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698