Merge "Enable time zone preference on wifi-only device."
This commit is contained in:
committed by
Android (Google) Code Review
commit
e761b4c4e2
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user