Loading AndroidManifest.xml +4 −4 Original line number Diff line number Diff line Loading @@ -166,7 +166,7 @@ <provider android:name=".provider.ClockProvider" android:authorities="com.android.deskclock" android:authorities="${applicationId}" android:directBootAware="true" android:exported="false" /> Loading Loading @@ -281,7 +281,7 @@ <meta-data android:name="android.appwidget.oldName" android:value="com.android.deskclock.AnalogAppWidgetProvider" /> android:value="${applicationId}.AnalogAppWidgetProvider" /> <meta-data android:name="android.appwidget.provider" android:resource="@xml/analog_appwidget" /> Loading @@ -297,8 +297,8 @@ <action android:name="android.intent.action.LOCALE_CHANGED" /> <action android:name="android.intent.action.TIME_SET" /> <action android:name="android.intent.action.TIMEZONE_CHANGED" /> <action android:name="com.android.deskclock.ON_DAY_CHANGE" /> <action android:name="com.android.deskclock.WORLD_CITIES_CHANGED" /> <action android:name="${applicationId}.ON_DAY_CHANGE" /> <action android:name="${applicationId}.WORLD_CITIES_CHANGED" /> <action android:name="android.intent.action.CONFIGURATION_CHANGED" /> </intent-filter> <meta-data Loading build.gradle +11 −0 Original line number Diff line number Diff line Loading @@ -7,10 +7,21 @@ android { compileSdk 34 defaultConfig { applicationId "com.android.deskclock" minSdkVersion 27 targetSdkVersion 34 } buildTypes { debug { applicationIdSuffix ".dev" } release { minifyEnabled true proguardFiles 'proguard.flags' } } sourceSets { main { res.srcDirs = ['res'] Loading src/com/android/alarmclock/DigitalAppWidgetProvider.java +2 −1 Original line number Diff line number Diff line Loading @@ -61,6 +61,7 @@ import android.widget.TextView; import androidx.annotation.NonNull; import com.android.deskclock.BuildConfig; import com.android.deskclock.DeskClock; import com.android.deskclock.LogUtils; import com.android.deskclock.R; Loading Loading @@ -107,7 +108,7 @@ public class DigitalAppWidgetProvider extends AppWidgetProvider { * the default TimeZone changes days. This affects the widget display because the day-of-week is * only visible when the world city day-of-week differs from the default TimeZone's day-of-week. */ private static final String ACTION_ON_DAY_CHANGE = "com.android.deskclock.ON_DAY_CHANGE"; private static final String ACTION_ON_DAY_CHANGE = BuildConfig.APPLICATION_ID + ".ON_DAY_CHANGE"; /** Intent used to deliver the {@link #ACTION_ON_DAY_CHANGE} callback. */ private static final Intent DAY_CHANGE_INTENT = new Intent(ACTION_ON_DAY_CHANGE); Loading src/com/android/deskclock/data/DataModel.java +2 −1 Original line number Diff line number Diff line Loading @@ -39,6 +39,7 @@ import android.view.View; import androidx.annotation.Keep; import androidx.annotation.StringRes; import com.android.deskclock.BuildConfig; import com.android.deskclock.Predicate; import com.android.deskclock.R; import com.android.deskclock.timer.TimerService; Loading Loading @@ -153,7 +154,7 @@ public final class DataModel { } public static final String ACTION_WORLD_CITIES_CHANGED = "com.android.deskclock.WORLD_CITIES_CHANGED"; BuildConfig.APPLICATION_ID + ".WORLD_CITIES_CHANGED"; /** The single instance of this data model that exists for the life of the application. */ private static final DataModel sDataModel = new DataModel(); Loading Loading
AndroidManifest.xml +4 −4 Original line number Diff line number Diff line Loading @@ -166,7 +166,7 @@ <provider android:name=".provider.ClockProvider" android:authorities="com.android.deskclock" android:authorities="${applicationId}" android:directBootAware="true" android:exported="false" /> Loading Loading @@ -281,7 +281,7 @@ <meta-data android:name="android.appwidget.oldName" android:value="com.android.deskclock.AnalogAppWidgetProvider" /> android:value="${applicationId}.AnalogAppWidgetProvider" /> <meta-data android:name="android.appwidget.provider" android:resource="@xml/analog_appwidget" /> Loading @@ -297,8 +297,8 @@ <action android:name="android.intent.action.LOCALE_CHANGED" /> <action android:name="android.intent.action.TIME_SET" /> <action android:name="android.intent.action.TIMEZONE_CHANGED" /> <action android:name="com.android.deskclock.ON_DAY_CHANGE" /> <action android:name="com.android.deskclock.WORLD_CITIES_CHANGED" /> <action android:name="${applicationId}.ON_DAY_CHANGE" /> <action android:name="${applicationId}.WORLD_CITIES_CHANGED" /> <action android:name="android.intent.action.CONFIGURATION_CHANGED" /> </intent-filter> <meta-data Loading
build.gradle +11 −0 Original line number Diff line number Diff line Loading @@ -7,10 +7,21 @@ android { compileSdk 34 defaultConfig { applicationId "com.android.deskclock" minSdkVersion 27 targetSdkVersion 34 } buildTypes { debug { applicationIdSuffix ".dev" } release { minifyEnabled true proguardFiles 'proguard.flags' } } sourceSets { main { res.srcDirs = ['res'] Loading
src/com/android/alarmclock/DigitalAppWidgetProvider.java +2 −1 Original line number Diff line number Diff line Loading @@ -61,6 +61,7 @@ import android.widget.TextView; import androidx.annotation.NonNull; import com.android.deskclock.BuildConfig; import com.android.deskclock.DeskClock; import com.android.deskclock.LogUtils; import com.android.deskclock.R; Loading Loading @@ -107,7 +108,7 @@ public class DigitalAppWidgetProvider extends AppWidgetProvider { * the default TimeZone changes days. This affects the widget display because the day-of-week is * only visible when the world city day-of-week differs from the default TimeZone's day-of-week. */ private static final String ACTION_ON_DAY_CHANGE = "com.android.deskclock.ON_DAY_CHANGE"; private static final String ACTION_ON_DAY_CHANGE = BuildConfig.APPLICATION_ID + ".ON_DAY_CHANGE"; /** Intent used to deliver the {@link #ACTION_ON_DAY_CHANGE} callback. */ private static final Intent DAY_CHANGE_INTENT = new Intent(ACTION_ON_DAY_CHANGE); Loading
src/com/android/deskclock/data/DataModel.java +2 −1 Original line number Diff line number Diff line Loading @@ -39,6 +39,7 @@ import android.view.View; import androidx.annotation.Keep; import androidx.annotation.StringRes; import com.android.deskclock.BuildConfig; import com.android.deskclock.Predicate; import com.android.deskclock.R; import com.android.deskclock.timer.TimerService; Loading Loading @@ -153,7 +154,7 @@ public final class DataModel { } public static final String ACTION_WORLD_CITIES_CHANGED = "com.android.deskclock.WORLD_CITIES_CHANGED"; BuildConfig.APPLICATION_ID + ".WORLD_CITIES_CHANGED"; /** The single instance of this data model that exists for the life of the application. */ private static final DataModel sDataModel = new DataModel(); Loading