Search in sources :

Example 1 with MINUTE_IN_MS

use of com.eveningoutpost.dexdrip.UtilityModels.Constants.MINUTE_IN_MS in project xDrip by NightscoutFoundation.

the class Home method showNoteTextInputDialog.

public void showNoteTextInputDialog(View myitem, final long timestamp, final double position) {
    Log.d(TAG, "showNoteTextInputDialog: ts:" + timestamp + " pos:" + position);
    AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(this);
    LayoutInflater inflater = this.getLayoutInflater();
    final View dialogView = inflater.inflate(R.layout.note_dialog_phone, null);
    dialogBuilder.setView(dialogView);
    final EditText edt = (EditText) dialogView.findViewById(R.id.treatment_note_edit_text);
    final CheckBox cbx = (CheckBox) dialogView.findViewById(R.id.default_to_voice_input);
    cbx.setChecked(Pref.getBooleanDefaultFalse("default_to_voice_notes"));
    dialogBuilder.setTitle(R.string.treatment_note);
    // dialogBuilder.setMessage("Enter text below");
    dialogBuilder.setPositiveButton(R.string.done, (dialog, whichButton) -> {
        String treatment_text = edt.getText().toString().trim();
        Log.d(TAG, "Got treatment note: " + treatment_text);
        // timestamp?
        Treatments.create_note(treatment_text, timestamp, position);
        Home.staticRefreshBGCharts();
        if (treatment_text.length() > 0) {
            // display snackbar of the snackbar
            final View.OnClickListener mOnClickListener = v -> Home.startHomeWithExtra(xdrip.getAppContext(), Home.CREATE_TREATMENT_NOTE, Long.toString(timestamp), Double.toString(position));
            Home.snackBar(R.string.add_note, getString(R.string.added) + ":    " + treatment_text, mOnClickListener, mActivity);
        }
        if (Pref.getBooleanDefaultFalse("default_to_voice_notes")) {
            showcasemenu(SHOWCASE_NOTE_LONG);
        }
    });
    dialogBuilder.setNegativeButton(getString(R.string.cancel), (dialog, whichButton) -> {
        if (Pref.getBooleanDefaultFalse("default_to_voice_notes")) {
            showcasemenu(SHOWCASE_NOTE_LONG);
        }
    });
    if (Treatments.byTimestamp(timestamp, (int) (2.5 * MINUTE_IN_MS)) != null) {
        dialogBuilder.setNeutralButton(R.string.delete, (dialog, whichButton) -> {
            // are you sure?
            final AlertDialog.Builder builder = new AlertDialog.Builder(mActivity);
            builder.setTitle(gs(R.string.confirm_delete));
            builder.setMessage(gs(R.string.are_you_sure_you_want_to_delete_this_treatment));
            builder.setPositiveButton(gs(R.string.yes_delete), (dialog1, which) -> {
                dialog1.dismiss();
                // 2.5 min resolution
                Treatments.delete_by_timestamp(timestamp, (int) (2.5 * MINUTE_IN_MS), true);
                staticRefreshBGCharts();
                JoH.static_toast_short(gs(R.string.deleted));
            });
            builder.setNegativeButton(gs(R.string.no), (dialog12, which) -> dialog12.dismiss());
            final AlertDialog alert = builder.create();
            alert.show();
        });
    }
    dialog = dialogBuilder.create();
    edt.setInputType(InputType.TYPE_CLASS_TEXT);
    edt.setOnFocusChangeListener((v, hasFocus) -> {
        if (hasFocus && dialog != null)
            dialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);
    });
    dialog.show();
}
Also used : AlertDialog(android.app.AlertDialog) EditText(android.widget.EditText) VoiceCommands(com.eveningoutpost.dexdrip.UtilityModels.VoiceCommands) DatePickerFragment(com.eveningoutpost.dexdrip.profileeditor.DatePickerFragment) LibreTrendGraph(com.eveningoutpost.dexdrip.utils.LibreTrendGraph) Bundle(android.os.Bundle) Preferences(com.eveningoutpost.dexdrip.utils.Preferences) Uri(android.net.Uri) ColorDrawable(android.graphics.drawable.ColorDrawable) GsonBuilder(com.google.gson.GsonBuilder) Inevitable(com.eveningoutpost.dexdrip.UtilityModels.Inevitable) Pref(com.eveningoutpost.dexdrip.UtilityModels.Pref) Manifest(android.Manifest) Calibration(com.eveningoutpost.dexdrip.Models.Calibration) QuickSettingsDialogs(com.eveningoutpost.dexdrip.ui.dialog.QuickSettingsDialogs) ActiveBgAlert(com.eveningoutpost.dexdrip.Models.ActiveBgAlert) TimerTask(java.util.TimerTask) TargetApi(android.annotation.TargetApi) Log(android.util.Log) SdcardImportExport(com.eveningoutpost.dexdrip.utils.SdcardImportExport) GregorianCalendar(java.util.GregorianCalendar) IntentFilter(android.content.IntentFilter) ContextCompat(android.support.v4.content.ContextCompat) ActivityHomeBinding(com.eveningoutpost.dexdrip.databinding.ActivityHomeBinding) WRITE_EXTERNAL_STORAGE(android.Manifest.permission.WRITE_EXTERNAL_STORAGE) ActivityCompat(android.support.v4.app.ActivityCompat) Target(com.github.amlcurran.showcaseview.targets.Target) StandardCharsets(java.nio.charset.StandardCharsets) JoH(com.eveningoutpost.dexdrip.Models.JoH) Intents(com.eveningoutpost.dexdrip.UtilityModels.Intents) Insulin(com.eveningoutpost.dexdrip.insulin.Insulin) Paint(android.graphics.Paint) WixelReader(com.eveningoutpost.dexdrip.Services.WixelReader) ActivityWithMenu(com.eveningoutpost.dexdrip.utils.ActivityWithMenu) ActivityRecognizedService(com.eveningoutpost.dexdrip.Services.ActivityRecognizedService) JamorhamShowcaseDrawer(com.eveningoutpost.dexdrip.UtilityModels.JamorhamShowcaseDrawer) CompatibleApps(com.eveningoutpost.dexdrip.UtilityModels.CompatibleApps) DatabaseUtil(com.eveningoutpost.dexdrip.utils.DatabaseUtil) ByteArrayOutputStream(java.io.ByteArrayOutputStream) ActivityHomeShelfSettingsBinding(com.eveningoutpost.dexdrip.databinding.ActivityHomeShelfSettingsBinding) SimpleDateFormat(java.text.SimpleDateFormat) Dialog(android.app.Dialog) RequiresApi(android.support.annotation.RequiresApi) NonNull(android.support.annotation.NonNull) ProfileAdapter(com.eveningoutpost.dexdrip.profileeditor.ProfileAdapter) ZoomType(lecho.lib.hellocharts.gesture.ZoomType) NumberFormat(java.text.NumberFormat) HexDump(com.eveningoutpost.dexdrip.ImportedLibraries.usbserial.util.HexDump) Pendiq(com.eveningoutpost.dexdrip.insulin.pendiq.Pendiq) ArrayList(java.util.ArrayList) LineChartView(lecho.lib.hellocharts.view.LineChartView) Calendar(java.util.Calendar) Toast(android.widget.Toast) Menu(android.view.Menu) Settings(android.provider.Settings) PrefsViewImpl(com.eveningoutpost.dexdrip.UtilityModels.PrefsViewImpl) UpdateActivity(com.eveningoutpost.dexdrip.UtilityModels.UpdateActivity) DrawerLayout(android.support.v4.widget.DrawerLayout) Notifications(com.eveningoutpost.dexdrip.UtilityModels.Notifications) Injectors(com.eveningoutpost.dexdrip.dagger.Injectors) IOException(java.io.IOException) ProcessInitialDataQuality(com.eveningoutpost.dexdrip.Models.ProcessInitialDataQuality) File(java.io.File) AlertPlayer(com.eveningoutpost.dexdrip.UtilityModels.AlertPlayer) Experience(com.eveningoutpost.dexdrip.UtilityModels.Experience) Toolbar(android.support.v7.widget.Toolbar) DexCollectionType(com.eveningoutpost.dexdrip.utils.DexCollectionType) BloodTest(com.eveningoutpost.dexdrip.Models.BloodTest) InPenEntry(com.eveningoutpost.dexdrip.insulin.inpen.InPenEntry) CollectionServiceStarter(com.eveningoutpost.dexdrip.UtilityModels.CollectionServiceStarter) MultipleInsulins(com.eveningoutpost.dexdrip.insulin.MultipleInsulins) WatchUpdaterService(com.eveningoutpost.dexdrip.wearintegration.WatchUpdaterService) Amazfitservice(com.eveningoutpost.dexdrip.wearintegration.Amazfitservice) DexCollectionService(com.eveningoutpost.dexdrip.Services.DexCollectionService) EditText(android.widget.EditText) UserError(com.eveningoutpost.dexdrip.Models.UserError) PersistentStore(com.eveningoutpost.dexdrip.UtilityModels.PersistentStore) NumberGraphic(com.eveningoutpost.dexdrip.ui.NumberGraphic) ImageButton(android.widget.ImageButton) Treatments(com.eveningoutpost.dexdrip.Models.Treatments) PackageManager(android.content.pm.PackageManager) Date(java.util.Date) WindowManager(android.view.WindowManager) X(com.eveningoutpost.dexdrip.UtilityModels.ColorCache.X) Timer(java.util.Timer) PendingIntent(android.app.PendingIntent) LocalBroadcastManager(android.support.v4.content.LocalBroadcastManager) PluggableCalibration(com.eveningoutpost.dexdrip.calibrations.PluggableCalibration) DateTypeAdapter(com.google.gson.internal.bind.DateTypeAdapter) UndoRedo(com.eveningoutpost.dexdrip.UtilityModels.UndoRedo) TestFeature(com.eveningoutpost.dexdrip.utils.TestFeature) ShowcaseView(com.github.amlcurran.showcaseview.ShowcaseView) PowerManager(android.os.PowerManager) HeartRate(com.eveningoutpost.dexdrip.Models.HeartRate) StepCounter(com.eveningoutpost.dexdrip.Models.StepCounter) CheckBox(android.widget.CheckBox) ViewTarget(com.github.amlcurran.showcaseview.targets.ViewTarget) Gson(com.google.gson.Gson) Locale(java.util.Locale) View(android.view.View) Button(android.widget.Button) TrendArrowFactory(com.eveningoutpost.dexdrip.ui.graphic.TrendArrowFactory) AdapterView(android.widget.AdapterView) PreferenceManager(android.preference.PreferenceManager) ParseException(java.text.ParseException) DAY_IN_MS(com.eveningoutpost.dexdrip.UtilityModels.Constants.DAY_IN_MS) AsyncTask(android.os.AsyncTask) BgReading(com.eveningoutpost.dexdrip.Models.BgReading) InputType(android.text.InputType) BroadcastReceiver(android.content.BroadcastReceiver) DisplayMetrics(android.util.DisplayMetrics) ViewGroup(android.view.ViewGroup) Ob1G5StateMachine(com.eveningoutpost.dexdrip.G5Model.Ob1G5StateMachine) AlertDialog(android.app.AlertDialog) NanoStatus(com.eveningoutpost.dexdrip.UtilityModels.NanoStatus) List(java.util.List) PreviewLineChartView(lecho.lib.hellocharts.view.PreviewLineChartView) TextView(android.widget.TextView) ActivityNotFoundException(android.content.ActivityNotFoundException) SendFeedBack(com.eveningoutpost.dexdrip.UtilityModels.SendFeedBack) Ob1G5CollectionService(com.eveningoutpost.dexdrip.Services.Ob1G5CollectionService) BgGraphBuilder(com.eveningoutpost.dexdrip.UtilityModels.BgGraphBuilder) Viewport(lecho.lib.hellocharts.model.Viewport) Window(android.view.Window) LibreBlock(com.eveningoutpost.dexdrip.Models.LibreBlock) PlusSyncService(com.eveningoutpost.dexdrip.Services.PlusSyncService) Typeface(android.graphics.Typeface) Context(android.content.Context) KeyEvent(android.view.KeyEvent) Sensor(com.eveningoutpost.dexdrip.Models.Sensor) InsulinManager(com.eveningoutpost.dexdrip.insulin.InsulinManager) ITrendArrow(com.eveningoutpost.dexdrip.ui.graphic.ITrendArrow) Getter(lombok.Getter) Constants(com.eveningoutpost.dexdrip.UtilityModels.Constants) ColorCache.getCol(com.eveningoutpost.dexdrip.UtilityModels.ColorCache.getCol) DisplayQRCode(com.eveningoutpost.dexdrip.utils.DisplayQRCode) ActiveBluetoothDevice(com.eveningoutpost.dexdrip.Models.ActiveBluetoothDevice) Intent(android.content.Intent) HOUR_IN_MS(com.eveningoutpost.dexdrip.UtilityModels.Constants.HOUR_IN_MS) NightscoutUploader(com.eveningoutpost.dexdrip.UtilityModels.NightscoutUploader) PopupInitialStatusHelperBinding(com.eveningoutpost.dexdrip.databinding.PopupInitialStatusHelperBinding) AudioManager(android.media.AudioManager) MenuItem(android.view.MenuItem) MessageFormat(java.text.MessageFormat) Inject(javax.inject.Inject) ViewportChangeListener(lecho.lib.hellocharts.listener.ViewportChangeListener) HeyFamUpdateOptInDialog(com.eveningoutpost.dexdrip.ui.dialog.HeyFamUpdateOptInDialog) SuppressLint(android.annotation.SuppressLint) InsulinInjection(com.eveningoutpost.dexdrip.Models.InsulinInjection) MotionEvent(android.view.MotionEvent) BaseShelf(com.eveningoutpost.dexdrip.ui.BaseShelf) RecognizerIntent(android.speech.RecognizerIntent) NativeCalibrationPipe(com.eveningoutpost.dexdrip.calibrations.NativeCalibrationPipe) MicroStatus(com.eveningoutpost.dexdrip.ui.MicroStatus) Build(android.os.Build) MicroStatusImpl(com.eveningoutpost.dexdrip.ui.MicroStatusImpl) LayoutInflater(android.view.LayoutInflater) com.eveningoutpost.dexdrip.xdrip.gs(com.eveningoutpost.dexdrip.xdrip.gs) UiPing(com.eveningoutpost.dexdrip.ui.UiPing) DecimalFormat(java.text.DecimalFormat) Point(android.graphics.Point) BgToSpeech(com.eveningoutpost.dexdrip.utils.BgToSpeech) DidYouCancelAlarm(com.eveningoutpost.dexdrip.ui.dialog.DidYouCancelAlarm) Color(android.graphics.Color) StatusLine(com.eveningoutpost.dexdrip.UtilityModels.StatusLine) EmergencyAssistActivity(com.eveningoutpost.dexdrip.eassist.EmergencyAssistActivity) SourceWizard(com.eveningoutpost.dexdrip.UtilityModels.SourceWizard) Activity(android.app.Activity) ShotStateStore(com.eveningoutpost.dexdrip.UtilityModels.ShotStateStore) InputStream(java.io.InputStream) MINUTE_IN_MS(com.eveningoutpost.dexdrip.UtilityModels.Constants.MINUTE_IN_MS) CheckBox(android.widget.CheckBox) GsonBuilder(com.google.gson.GsonBuilder) BgGraphBuilder(com.eveningoutpost.dexdrip.UtilityModels.BgGraphBuilder) LayoutInflater(android.view.LayoutInflater) LineChartView(lecho.lib.hellocharts.view.LineChartView) ShowcaseView(com.github.amlcurran.showcaseview.ShowcaseView) View(android.view.View) AdapterView(android.widget.AdapterView) PreviewLineChartView(lecho.lib.hellocharts.view.PreviewLineChartView) TextView(android.widget.TextView)

Example 2 with MINUTE_IN_MS

use of com.eveningoutpost.dexdrip.UtilityModels.Constants.MINUTE_IN_MS in project xDrip-plus by jamorham.

the class Home method showNoteTextInputDialog.

public void showNoteTextInputDialog(View myitem, final long timestamp, final double position) {
    Log.d(TAG, "showNoteTextInputDialog: ts:" + timestamp + " pos:" + position);
    AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(this);
    LayoutInflater inflater = this.getLayoutInflater();
    final View dialogView = inflater.inflate(R.layout.note_dialog_phone, null);
    dialogBuilder.setView(dialogView);
    final EditText edt = (EditText) dialogView.findViewById(R.id.treatment_note_edit_text);
    final CheckBox cbx = (CheckBox) dialogView.findViewById(R.id.default_to_voice_input);
    cbx.setChecked(Pref.getBooleanDefaultFalse("default_to_voice_notes"));
    dialogBuilder.setTitle(R.string.treatment_note);
    // dialogBuilder.setMessage("Enter text below");
    dialogBuilder.setPositiveButton(R.string.done, (dialog, whichButton) -> {
        String treatment_text = edt.getText().toString().trim();
        Log.d(TAG, "Got treatment note: " + treatment_text);
        // timestamp?
        Treatments.create_note(treatment_text, timestamp, position);
        Home.staticRefreshBGCharts();
        if (treatment_text.length() > 0) {
            // display snackbar of the snackbar
            final View.OnClickListener mOnClickListener = v -> Home.startHomeWithExtra(xdrip.getAppContext(), Home.CREATE_TREATMENT_NOTE, Long.toString(timestamp), Double.toString(position));
            Home.snackBar(R.string.add_note, getString(R.string.added) + ":    " + treatment_text, mOnClickListener, mActivity);
        }
        if (Pref.getBooleanDefaultFalse("default_to_voice_notes")) {
            showcasemenu(SHOWCASE_NOTE_LONG);
        }
    });
    dialogBuilder.setNegativeButton(getString(R.string.cancel), (dialog, whichButton) -> {
        if (Pref.getBooleanDefaultFalse("default_to_voice_notes")) {
            showcasemenu(SHOWCASE_NOTE_LONG);
        }
    });
    if (Treatments.byTimestamp(timestamp, (int) (2.5 * MINUTE_IN_MS)) != null) {
        dialogBuilder.setNeutralButton(R.string.delete, (dialog, whichButton) -> {
            // are you sure?
            final AlertDialog.Builder builder = new AlertDialog.Builder(mActivity);
            builder.setTitle(gs(R.string.confirm_delete));
            builder.setMessage(gs(R.string.are_you_sure_you_want_to_delete_this_treatment));
            builder.setPositiveButton(gs(R.string.yes_delete), (dialog1, which) -> {
                dialog1.dismiss();
                // 2.5 min resolution
                Treatments.delete_by_timestamp(timestamp, (int) (2.5 * MINUTE_IN_MS), true);
                staticRefreshBGCharts();
                JoH.static_toast_short(gs(R.string.deleted));
            });
            builder.setNegativeButton(gs(R.string.no), (dialog12, which) -> dialog12.dismiss());
            final AlertDialog alert = builder.create();
            alert.show();
        });
    }
    dialog = dialogBuilder.create();
    edt.setInputType(InputType.TYPE_CLASS_TEXT);
    edt.setOnFocusChangeListener((v, hasFocus) -> {
        if (hasFocus && dialog != null)
            dialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);
    });
    dialog.show();
}
Also used : AlertDialog(android.app.AlertDialog) EditText(android.widget.EditText) VoiceCommands(com.eveningoutpost.dexdrip.UtilityModels.VoiceCommands) DatePickerFragment(com.eveningoutpost.dexdrip.profileeditor.DatePickerFragment) LibreTrendGraph(com.eveningoutpost.dexdrip.utils.LibreTrendGraph) Bundle(android.os.Bundle) Preferences(com.eveningoutpost.dexdrip.utils.Preferences) Uri(android.net.Uri) ColorDrawable(android.graphics.drawable.ColorDrawable) GsonBuilder(com.google.gson.GsonBuilder) Inevitable(com.eveningoutpost.dexdrip.UtilityModels.Inevitable) Pref(com.eveningoutpost.dexdrip.UtilityModels.Pref) Manifest(android.Manifest) Calibration(com.eveningoutpost.dexdrip.Models.Calibration) QuickSettingsDialogs(com.eveningoutpost.dexdrip.ui.dialog.QuickSettingsDialogs) ActiveBgAlert(com.eveningoutpost.dexdrip.Models.ActiveBgAlert) TimerTask(java.util.TimerTask) TargetApi(android.annotation.TargetApi) Log(android.util.Log) SdcardImportExport(com.eveningoutpost.dexdrip.utils.SdcardImportExport) GregorianCalendar(java.util.GregorianCalendar) IntentFilter(android.content.IntentFilter) ContextCompat(android.support.v4.content.ContextCompat) ActivityHomeBinding(com.eveningoutpost.dexdrip.databinding.ActivityHomeBinding) WRITE_EXTERNAL_STORAGE(android.Manifest.permission.WRITE_EXTERNAL_STORAGE) ActivityCompat(android.support.v4.app.ActivityCompat) Target(com.github.amlcurran.showcaseview.targets.Target) StandardCharsets(java.nio.charset.StandardCharsets) JoH(com.eveningoutpost.dexdrip.Models.JoH) Intents(com.eveningoutpost.dexdrip.UtilityModels.Intents) Insulin(com.eveningoutpost.dexdrip.insulin.Insulin) Paint(android.graphics.Paint) WixelReader(com.eveningoutpost.dexdrip.Services.WixelReader) ActivityWithMenu(com.eveningoutpost.dexdrip.utils.ActivityWithMenu) ActivityRecognizedService(com.eveningoutpost.dexdrip.Services.ActivityRecognizedService) JamorhamShowcaseDrawer(com.eveningoutpost.dexdrip.UtilityModels.JamorhamShowcaseDrawer) CompatibleApps(com.eveningoutpost.dexdrip.UtilityModels.CompatibleApps) DatabaseUtil(com.eveningoutpost.dexdrip.utils.DatabaseUtil) ByteArrayOutputStream(java.io.ByteArrayOutputStream) ActivityHomeShelfSettingsBinding(com.eveningoutpost.dexdrip.databinding.ActivityHomeShelfSettingsBinding) SimpleDateFormat(java.text.SimpleDateFormat) Dialog(android.app.Dialog) RequiresApi(android.support.annotation.RequiresApi) NonNull(android.support.annotation.NonNull) ProfileAdapter(com.eveningoutpost.dexdrip.profileeditor.ProfileAdapter) ZoomType(lecho.lib.hellocharts.gesture.ZoomType) NumberFormat(java.text.NumberFormat) HexDump(com.eveningoutpost.dexdrip.ImportedLibraries.usbserial.util.HexDump) Pendiq(com.eveningoutpost.dexdrip.insulin.pendiq.Pendiq) ArrayList(java.util.ArrayList) LineChartView(lecho.lib.hellocharts.view.LineChartView) Calendar(java.util.Calendar) Toast(android.widget.Toast) Menu(android.view.Menu) Settings(android.provider.Settings) PrefsViewImpl(com.eveningoutpost.dexdrip.UtilityModels.PrefsViewImpl) UpdateActivity(com.eveningoutpost.dexdrip.UtilityModels.UpdateActivity) DrawerLayout(android.support.v4.widget.DrawerLayout) Notifications(com.eveningoutpost.dexdrip.UtilityModels.Notifications) Injectors(com.eveningoutpost.dexdrip.dagger.Injectors) IOException(java.io.IOException) ProcessInitialDataQuality(com.eveningoutpost.dexdrip.Models.ProcessInitialDataQuality) File(java.io.File) AlertPlayer(com.eveningoutpost.dexdrip.UtilityModels.AlertPlayer) Experience(com.eveningoutpost.dexdrip.UtilityModels.Experience) Toolbar(android.support.v7.widget.Toolbar) DexCollectionType(com.eveningoutpost.dexdrip.utils.DexCollectionType) BloodTest(com.eveningoutpost.dexdrip.Models.BloodTest) InPenEntry(com.eveningoutpost.dexdrip.insulin.inpen.InPenEntry) CollectionServiceStarter(com.eveningoutpost.dexdrip.UtilityModels.CollectionServiceStarter) MultipleInsulins(com.eveningoutpost.dexdrip.insulin.MultipleInsulins) WatchUpdaterService(com.eveningoutpost.dexdrip.wearintegration.WatchUpdaterService) Amazfitservice(com.eveningoutpost.dexdrip.wearintegration.Amazfitservice) DexCollectionService(com.eveningoutpost.dexdrip.Services.DexCollectionService) EditText(android.widget.EditText) UserError(com.eveningoutpost.dexdrip.Models.UserError) PersistentStore(com.eveningoutpost.dexdrip.UtilityModels.PersistentStore) NumberGraphic(com.eveningoutpost.dexdrip.ui.NumberGraphic) ImageButton(android.widget.ImageButton) Treatments(com.eveningoutpost.dexdrip.Models.Treatments) PackageManager(android.content.pm.PackageManager) Date(java.util.Date) WindowManager(android.view.WindowManager) X(com.eveningoutpost.dexdrip.UtilityModels.ColorCache.X) Timer(java.util.Timer) PendingIntent(android.app.PendingIntent) LocalBroadcastManager(android.support.v4.content.LocalBroadcastManager) PluggableCalibration(com.eveningoutpost.dexdrip.calibrations.PluggableCalibration) DateTypeAdapter(com.google.gson.internal.bind.DateTypeAdapter) UndoRedo(com.eveningoutpost.dexdrip.UtilityModels.UndoRedo) TestFeature(com.eveningoutpost.dexdrip.utils.TestFeature) ShowcaseView(com.github.amlcurran.showcaseview.ShowcaseView) PowerManager(android.os.PowerManager) HeartRate(com.eveningoutpost.dexdrip.Models.HeartRate) StepCounter(com.eveningoutpost.dexdrip.Models.StepCounter) CheckBox(android.widget.CheckBox) ViewTarget(com.github.amlcurran.showcaseview.targets.ViewTarget) Gson(com.google.gson.Gson) Locale(java.util.Locale) View(android.view.View) Button(android.widget.Button) TrendArrowFactory(com.eveningoutpost.dexdrip.ui.graphic.TrendArrowFactory) AdapterView(android.widget.AdapterView) PreferenceManager(android.preference.PreferenceManager) ParseException(java.text.ParseException) DAY_IN_MS(com.eveningoutpost.dexdrip.UtilityModels.Constants.DAY_IN_MS) AsyncTask(android.os.AsyncTask) BgReading(com.eveningoutpost.dexdrip.Models.BgReading) InputType(android.text.InputType) BroadcastReceiver(android.content.BroadcastReceiver) DisplayMetrics(android.util.DisplayMetrics) ViewGroup(android.view.ViewGroup) Ob1G5StateMachine(com.eveningoutpost.dexdrip.G5Model.Ob1G5StateMachine) AlertDialog(android.app.AlertDialog) NanoStatus(com.eveningoutpost.dexdrip.UtilityModels.NanoStatus) List(java.util.List) PreviewLineChartView(lecho.lib.hellocharts.view.PreviewLineChartView) TextView(android.widget.TextView) ActivityNotFoundException(android.content.ActivityNotFoundException) SendFeedBack(com.eveningoutpost.dexdrip.UtilityModels.SendFeedBack) Ob1G5CollectionService(com.eveningoutpost.dexdrip.Services.Ob1G5CollectionService) BgGraphBuilder(com.eveningoutpost.dexdrip.UtilityModels.BgGraphBuilder) Viewport(lecho.lib.hellocharts.model.Viewport) Window(android.view.Window) LibreBlock(com.eveningoutpost.dexdrip.Models.LibreBlock) PlusSyncService(com.eveningoutpost.dexdrip.Services.PlusSyncService) Typeface(android.graphics.Typeface) Context(android.content.Context) KeyEvent(android.view.KeyEvent) Sensor(com.eveningoutpost.dexdrip.Models.Sensor) InsulinManager(com.eveningoutpost.dexdrip.insulin.InsulinManager) ITrendArrow(com.eveningoutpost.dexdrip.ui.graphic.ITrendArrow) Getter(lombok.Getter) Constants(com.eveningoutpost.dexdrip.UtilityModels.Constants) ColorCache.getCol(com.eveningoutpost.dexdrip.UtilityModels.ColorCache.getCol) DisplayQRCode(com.eveningoutpost.dexdrip.utils.DisplayQRCode) ActiveBluetoothDevice(com.eveningoutpost.dexdrip.Models.ActiveBluetoothDevice) Intent(android.content.Intent) HOUR_IN_MS(com.eveningoutpost.dexdrip.UtilityModels.Constants.HOUR_IN_MS) NightscoutUploader(com.eveningoutpost.dexdrip.UtilityModels.NightscoutUploader) PopupInitialStatusHelperBinding(com.eveningoutpost.dexdrip.databinding.PopupInitialStatusHelperBinding) AudioManager(android.media.AudioManager) MenuItem(android.view.MenuItem) MessageFormat(java.text.MessageFormat) Inject(javax.inject.Inject) ViewportChangeListener(lecho.lib.hellocharts.listener.ViewportChangeListener) HeyFamUpdateOptInDialog(com.eveningoutpost.dexdrip.ui.dialog.HeyFamUpdateOptInDialog) SuppressLint(android.annotation.SuppressLint) InsulinInjection(com.eveningoutpost.dexdrip.Models.InsulinInjection) MotionEvent(android.view.MotionEvent) BaseShelf(com.eveningoutpost.dexdrip.ui.BaseShelf) RecognizerIntent(android.speech.RecognizerIntent) NativeCalibrationPipe(com.eveningoutpost.dexdrip.calibrations.NativeCalibrationPipe) MicroStatus(com.eveningoutpost.dexdrip.ui.MicroStatus) Build(android.os.Build) MicroStatusImpl(com.eveningoutpost.dexdrip.ui.MicroStatusImpl) LayoutInflater(android.view.LayoutInflater) com.eveningoutpost.dexdrip.xdrip.gs(com.eveningoutpost.dexdrip.xdrip.gs) UiPing(com.eveningoutpost.dexdrip.ui.UiPing) DecimalFormat(java.text.DecimalFormat) Point(android.graphics.Point) BgToSpeech(com.eveningoutpost.dexdrip.utils.BgToSpeech) DidYouCancelAlarm(com.eveningoutpost.dexdrip.ui.dialog.DidYouCancelAlarm) Color(android.graphics.Color) StatusLine(com.eveningoutpost.dexdrip.UtilityModels.StatusLine) EmergencyAssistActivity(com.eveningoutpost.dexdrip.eassist.EmergencyAssistActivity) SourceWizard(com.eveningoutpost.dexdrip.UtilityModels.SourceWizard) Activity(android.app.Activity) ShotStateStore(com.eveningoutpost.dexdrip.UtilityModels.ShotStateStore) InputStream(java.io.InputStream) MINUTE_IN_MS(com.eveningoutpost.dexdrip.UtilityModels.Constants.MINUTE_IN_MS) CheckBox(android.widget.CheckBox) GsonBuilder(com.google.gson.GsonBuilder) BgGraphBuilder(com.eveningoutpost.dexdrip.UtilityModels.BgGraphBuilder) LayoutInflater(android.view.LayoutInflater) LineChartView(lecho.lib.hellocharts.view.LineChartView) ShowcaseView(com.github.amlcurran.showcaseview.ShowcaseView) View(android.view.View) AdapterView(android.widget.AdapterView) PreviewLineChartView(lecho.lib.hellocharts.view.PreviewLineChartView) TextView(android.widget.TextView)

Aggregations

Manifest (android.Manifest)2 WRITE_EXTERNAL_STORAGE (android.Manifest.permission.WRITE_EXTERNAL_STORAGE)2 SuppressLint (android.annotation.SuppressLint)2 TargetApi (android.annotation.TargetApi)2 Activity (android.app.Activity)2 AlertDialog (android.app.AlertDialog)2 Dialog (android.app.Dialog)2 PendingIntent (android.app.PendingIntent)2 ActivityNotFoundException (android.content.ActivityNotFoundException)2 BroadcastReceiver (android.content.BroadcastReceiver)2 Context (android.content.Context)2 Intent (android.content.Intent)2 IntentFilter (android.content.IntentFilter)2 PackageManager (android.content.pm.PackageManager)2 Color (android.graphics.Color)2 Paint (android.graphics.Paint)2 Point (android.graphics.Point)2 Typeface (android.graphics.Typeface)2 ColorDrawable (android.graphics.drawable.ColorDrawable)2 AudioManager (android.media.AudioManager)2