Merge "Enable time zone preference on wifi-only device."

This commit is contained in:
TreeHugger Robot
2017-01-13 20:45:49 +00:00
committed by Android (Google) Code Review
2 changed files with 20 additions and 1 deletions

View File

@@ -67,7 +67,7 @@ public class AutoTimeZonePreferenceController extends PreferenceController
}
public boolean isEnabled() {
return Settings.Global.getInt(mContext.getContentResolver(),
return isAvailable() && Settings.Global.getInt(mContext.getContentResolver(),
Settings.Global.AUTO_TIME_ZONE, 0) > 0;
}
}