APISonar


nodomain.freeyourgadget.gadgetbridge.devices.miband.DateTimeDisplay.TIME

> nodomain > freeyourgadget > gadgetbridge > devices > miband > DateTimeDisplay > TIME
nodomain APIs freeyourgadget APIs gadgetbridge APIs devices APIs miband APIs DateTimeDisplay APIs TIME APIs

Example 1
public static DateTimeDisplay getDateDisplay(Context context, String deviceAddress) throws IllegalArgumentException {
        SharedPreferences sharedPrefs = GBApplication.getDeviceSpecificSharedPrefs(deviceAddress);
        String dateFormatTime = context.getString(R.string.p_dateformat_time);
        if (dateFormatTime.equals(sharedPrefs.getString(MiBandConst.PREF_MI2_DATEFORMAT, dateFormatTime))) {
            return DateTimeDisplay.TIME;
        }
        return DateTimeDisplay.DATE_TIME;
    }