Skip to content

Commit 4a3dd23

Browse files
committed
fix: replace internal Google Play Services drawable with Android SDK default
- Replace R.drawable.common_full_open_on_phone with android.R.drawable.ic_dialog_info - Use Android SDK built-in icon instead of internal Play Services resource - Fix compilation error without adding extra dependencies
1 parent 8dfe6ec commit 4a3dd23

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/activity_recognition_flutter/android/src/main/java/dk/cachet/activity_recognition_flutter/ActivityRecognitionFlutterPlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ void startForegroundService() {
108108
// Pass the notification title/text/icon to the service
109109
intent.putExtra("title", "MonsensoMonitor")
110110
.putExtra("text", "Monsenso Foreground Service")
111-
.putExtra("icon", R.drawable.common_full_open_on_phone)
111+
.putExtra("icon", android.R.drawable.ic_dialog_info)
112112
.putExtra("importance", 3)
113113
.putExtra("id", 10);
114114

packages/activity_recognition_flutter/android/src/main/java/dk/cachet/activity_recognition_flutter/ForegroundService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ private void startPluginForegroundService(Bundle extras) {
6666

6767
// Get notification icon
6868
// int icon = getResources().getIdentifier((String) extras.get("icon"), "drawable", context.getPackageName());
69-
int icon = R.drawable.common_full_open_on_phone;
69+
int icon = android.R.drawable.ic_dialog_info;
7070

7171
// Make notification
7272
Notification notification = new Notification.Builder(context, "foreground.service.channel")

0 commit comments

Comments
 (0)