Color fix and fix of small bug.

This commit is contained in:
GaidamakUA 2015-12-25 18:08:00 +02:00
parent 2266bd1c40
commit c2f61a852a
2 changed files with 1 additions and 6 deletions

View file

@ -192,11 +192,6 @@ public class LiveUpdatesFragment extends Fragment {
view.setOnClickListener(null);
TypedValue typedValue = new TypedValue();
Resources.Theme theme = ctx.getTheme();
theme.resolveAttribute(R.attr.ctx_menu_info_view_bg, typedValue, true);
view.setBackgroundColor(typedValue.data);
SwitchCompat liveUpdatesSwitch = (SwitchCompat) view.findViewById(R.id.liveUpdatesSwitch);
View topShadowView = view.findViewById(R.id.bottomShadowView);
if (groupPosition == SHOULD_UPDATE_GROUP_POSITION) {

View file

@ -89,7 +89,7 @@ public class PerformLiveUpdateAsyncTask
boolean downloadViaWiFi =
LiveUpdatesHelper.preferenceDownloadViaWiFi(localIndexInfo, settings).get();
if (getMyApplication().getSettings().isInternetConnectionAvailable()) {
if (settings.isWifiConnected() || downloadViaWiFi) {
if (settings.isWifiConnected() || !downloadViaWiFi) {
long szLong = 0;
int i = 0;
for (IndexItem es : downloadThread.getCurrentDownloadingItems()) {