Address lint security issues

pull/437/head
Alex Baker 8 years ago
parent 33b8218463
commit d8bed95059

@ -138,6 +138,7 @@
android:value=".dashclock.DashClockSettings" />
</service>
<!--suppress AndroidLintExportedPreferenceActivity -->
<activity android:name=".dashclock.DashClockSettings"
android:label="@string/app_name"
android:exported="true" />

@ -198,12 +198,13 @@
android:theme="@style/Tasks" />
<!-- Activity that configures widget -->
<!--suppress AndroidLintExportedPreferenceActivity -->
<activity
android:name=".widget.WidgetConfigActivity"
android:taskAffinity=""
android:label="@string/widget_settings"
android:excludeFromRecents="true"
android:theme="@style/TranslucentDialog">
android:theme="@style/Tasks" >
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
</intent-filter>

@ -41,6 +41,10 @@ public class PhoneStateChangedReceiver extends InjectingBroadcastReceiver {
public void onReceive(final Context context, Intent intent) {
super.onReceive(context, intent);
if (!intent.getAction().equals(TelephonyManager.ACTION_PHONE_STATE_CHANGED)) {
return;
}
if (!preferences.fieldMissedPhoneCalls()) {
preferences.clear(PREF_LAST_INCOMING_NUMBER);
return;

@ -19,6 +19,10 @@ public class BootCompletedReceiver extends InjectingBroadcastReceiver {
public void onReceive(Context context, Intent intent) {
super.onReceive(context, intent);
if (!intent.getAction().equals(Intent.ACTION_BOOT_COMPLETED)) {
return;
}
Timber.d("onReceive(context, %s)", intent);
backgroundScheduler.scheduleEverything();

@ -19,6 +19,10 @@ public class MyPackageReplacedReceiver extends InjectingBroadcastReceiver {
public void onReceive(Context context, Intent intent) {
super.onReceive(context, intent);
if (!intent.getAction().equals(Intent.ACTION_MY_PACKAGE_REPLACED)) {
return;
}
Timber.d("onReceive(context, %s)", intent);
backgroundScheduler.scheduleEverything();

Loading…
Cancel
Save