Commit f30022d5 authored by Shakti Sahu's avatar Shakti Sahu Committed by Commit Bot

Download Home : Bug fixes

1 - Fixed empty view being chopped off
2 - Hooked up PrefetchStatusProvider to the value of feature

Bug: 882011
Change-Id: Ic4e89a4720b52da84b433092d1de7ace702b431a
Reviewed-on: https://chromium-review.googlesource.com/1213520Reviewed-by: default avatarDavid Trainor <dtrainor@chromium.org>
Commit-Queue: Shakti Sahu <shaktisahu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#589733}
parent 142d4513
......@@ -10,7 +10,6 @@
<TextView
android:id="@+id/empty"
android:layout_marginTop="100dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
......
......@@ -4,10 +4,12 @@
package org.chromium.chrome.browser.download.home;
import org.chromium.chrome.browser.offlinepages.prefetch.PrefetchConfiguration;
/** Helper class to expose the status of the offline prefetch feature. */
public class PrefetchStatusProvider {
/** @return Whether or not the offline prefetch feature is enabled. */
public boolean enabled() {
return true;
return PrefetchConfiguration.isPrefetchingFlagEnabled();
}
}
\ No newline at end of file
......@@ -91,7 +91,6 @@ public class DateOrderedListCoordinator implements ToolbarCoordinator.ToolbarLis
SelectionDelegate<ListItem> selectionDelegate,
FilterCoordinator.Observer filterObserver,
DateOrderedListObserver dateOrderedListObserver) {
// TODO(shaktisahu): Use a real provider/have this provider query the real data source.
PrefetchStatusProvider prefetchProvider = new PrefetchStatusProvider();
ListItemModel model = new ListItemModel();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment