unique names for messages
This commit is contained in:
parent
b0e8f31abf
commit
46dc2e3842
@ -8,4 +8,4 @@
|
|||||||
# project structure.
|
# project structure.
|
||||||
|
|
||||||
# Project target.
|
# Project target.
|
||||||
target=android-8
|
target=android-10
|
||||||
|
@ -11,7 +11,8 @@ import android.preference.PreferenceManager;
|
|||||||
import de.schatenseite.android.datepreference.DatePreference;
|
import de.schatenseite.android.datepreference.DatePreference;
|
||||||
|
|
||||||
public class WaldemarPreferences extends PreferenceActivity {
|
public class WaldemarPreferences extends PreferenceActivity {
|
||||||
public static final String PREFERENCES_UPDATED = "PREFERENCES_UPDATED";
|
private static final String PREFIX = WaldemarPreferences.class.getPackage().getName() + ".";
|
||||||
|
public static final String PREFERENCES_UPDATED = PREFIX + "PREFERENCES_UPDATED";
|
||||||
int widgetId;
|
int widgetId;
|
||||||
public void enableDisablePreferences(String val) {
|
public void enableDisablePreferences(String val) {
|
||||||
EditTextPreference pref_name = (EditTextPreference)findPreference("pref_name");
|
EditTextPreference pref_name = (EditTextPreference)findPreference("pref_name");
|
||||||
|
@ -24,7 +24,8 @@ import android.widget.RemoteViews;
|
|||||||
import de.schatenseite.android.datepreference.DatePreference;
|
import de.schatenseite.android.datepreference.DatePreference;
|
||||||
|
|
||||||
public class WaldemarWidget extends AppWidgetProvider {
|
public class WaldemarWidget extends AppWidgetProvider {
|
||||||
public static final String MIDNIGHTLY_WIDGET_UPDATE = "MIDNIGHTLY_WIDGET_UPDATE";
|
private static final String PREFIX = WaldemarWidget.class.getPackage().getName() + ".";
|
||||||
|
public static final String MIDNIGHTLY_WIDGET_UPDATE = PREFIX + "MIDNIGHTLY_WIDGET_UPDATE";
|
||||||
private static final double SECONDS_PER_DAY = 24 * 60 * 60;
|
private static final double SECONDS_PER_DAY = 24 * 60 * 60;
|
||||||
private static final double MILLISECONDS_PER_DAY = SECONDS_PER_DAY * 1000;
|
private static final double MILLISECONDS_PER_DAY = SECONDS_PER_DAY * 1000;
|
||||||
private static final int CURRENTLY_NOT_USED_REQUEST_CODE = 0;
|
private static final int CURRENTLY_NOT_USED_REQUEST_CODE = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user