Java Code Examples for com.eveningoutpost.dexdrip.UtilityModels.Intents#PREFERENCE_INTENT
The following examples show how to use
com.eveningoutpost.dexdrip.UtilityModels.Intents#PREFERENCE_INTENT .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MiBandEntry.java From xDrip with GNU General Public License v3.0 | 5 votes |
public static void sendPrefIntent(MiBandService.MIBAND_INTEND_STATES state, Integer progress, String descrText) { final Intent progressIntent = new Intent(Intents.PREFERENCE_INTENT); progressIntent.putExtra("state", state.name()); progressIntent.putExtra("progress", progress); if (!descrText.isEmpty()) progressIntent.putExtra("descr_text", descrText); LocalBroadcastManager.getInstance(xdrip.getAppContext()).sendBroadcast(progressIntent); }
Example 2
Source File: MiBandEntry.java From xDrip-plus with GNU General Public License v3.0 | 5 votes |
public static void sendPrefIntent(MiBandService.MIBAND_INTEND_STATES state, Integer progress, String descrText) { final Intent progressIntent = new Intent(Intents.PREFERENCE_INTENT); progressIntent.putExtra("state", state.name()); progressIntent.putExtra("progress", progress); if (!descrText.isEmpty()) progressIntent.putExtra("descr_text", descrText); LocalBroadcastManager.getInstance(xdrip.getAppContext()).sendBroadcast(progressIntent); }