|
1 | 1 | package io.sentry.android.core; |
2 | 2 |
|
3 | | -import static android.appwidget.AppWidgetManager.ACTION_APPWIDGET_DELETED; |
4 | | -import static android.appwidget.AppWidgetManager.ACTION_APPWIDGET_DISABLED; |
5 | | -import static android.appwidget.AppWidgetManager.ACTION_APPWIDGET_ENABLED; |
6 | | -import static android.appwidget.AppWidgetManager.ACTION_APPWIDGET_UPDATE; |
7 | 3 | import static android.content.Intent.ACTION_AIRPLANE_MODE_CHANGED; |
8 | | -import static android.content.Intent.ACTION_APP_ERROR; |
9 | 4 | import static android.content.Intent.ACTION_BATTERY_CHANGED; |
10 | | -import static android.content.Intent.ACTION_BATTERY_LOW; |
11 | | -import static android.content.Intent.ACTION_BATTERY_OKAY; |
12 | | -import static android.content.Intent.ACTION_BOOT_COMPLETED; |
13 | | -import static android.content.Intent.ACTION_BUG_REPORT; |
14 | 5 | import static android.content.Intent.ACTION_CAMERA_BUTTON; |
15 | 6 | import static android.content.Intent.ACTION_CONFIGURATION_CHANGED; |
16 | 7 | import static android.content.Intent.ACTION_DATE_CHANGED; |
17 | 8 | import static android.content.Intent.ACTION_DEVICE_STORAGE_LOW; |
18 | 9 | import static android.content.Intent.ACTION_DEVICE_STORAGE_OK; |
19 | 10 | import static android.content.Intent.ACTION_DOCK_EVENT; |
| 11 | +import static android.content.Intent.ACTION_DREAMING_STARTED; |
| 12 | +import static android.content.Intent.ACTION_DREAMING_STOPPED; |
20 | 13 | import static android.content.Intent.ACTION_INPUT_METHOD_CHANGED; |
21 | 14 | import static android.content.Intent.ACTION_LOCALE_CHANGED; |
22 | | -import static android.content.Intent.ACTION_MEDIA_BAD_REMOVAL; |
23 | | -import static android.content.Intent.ACTION_MEDIA_MOUNTED; |
24 | | -import static android.content.Intent.ACTION_MEDIA_UNMOUNTABLE; |
25 | | -import static android.content.Intent.ACTION_MEDIA_UNMOUNTED; |
26 | | -import static android.content.Intent.ACTION_POWER_CONNECTED; |
27 | | -import static android.content.Intent.ACTION_POWER_DISCONNECTED; |
28 | | -import static android.content.Intent.ACTION_REBOOT; |
29 | 15 | import static android.content.Intent.ACTION_SCREEN_OFF; |
30 | 16 | import static android.content.Intent.ACTION_SCREEN_ON; |
31 | 17 | import static android.content.Intent.ACTION_SHUTDOWN; |
@@ -142,52 +128,27 @@ private void startSystemEventsReceiver( |
142 | 128 | } |
143 | 129 |
|
144 | 130 | @SuppressWarnings("deprecation") |
145 | | - private static @NotNull List<String> getDefaultActions() { |
| 131 | + public static @NotNull List<String> getDefaultActions() { |
146 | 132 | final List<String> actions = new ArrayList<>(); |
147 | | - actions.add(ACTION_APPWIDGET_DELETED); |
148 | | - actions.add(ACTION_APPWIDGET_DISABLED); |
149 | | - actions.add(ACTION_APPWIDGET_ENABLED); |
150 | | - actions.add("android.appwidget.action.APPWIDGET_HOST_RESTORED"); |
151 | | - actions.add("android.appwidget.action.APPWIDGET_RESTORED"); |
152 | | - actions.add(ACTION_APPWIDGET_UPDATE); |
153 | | - actions.add("android.appwidget.action.APPWIDGET_UPDATE_OPTIONS"); |
154 | | - actions.add(ACTION_POWER_CONNECTED); |
155 | | - actions.add(ACTION_POWER_DISCONNECTED); |
156 | 133 | actions.add(ACTION_SHUTDOWN); |
157 | 134 | actions.add(ACTION_AIRPLANE_MODE_CHANGED); |
158 | | - actions.add(ACTION_BATTERY_LOW); |
159 | | - actions.add(ACTION_BATTERY_OKAY); |
160 | 135 | actions.add(ACTION_BATTERY_CHANGED); |
161 | | - actions.add(ACTION_BOOT_COMPLETED); |
162 | 136 | actions.add(ACTION_CAMERA_BUTTON); |
163 | 137 | actions.add(ACTION_CONFIGURATION_CHANGED); |
164 | | - actions.add("android.intent.action.CONTENT_CHANGED"); |
165 | 138 | actions.add(ACTION_DATE_CHANGED); |
166 | 139 | actions.add(ACTION_DEVICE_STORAGE_LOW); |
167 | 140 | actions.add(ACTION_DEVICE_STORAGE_OK); |
168 | 141 | actions.add(ACTION_DOCK_EVENT); |
169 | | - actions.add("android.intent.action.DREAMING_STARTED"); |
170 | | - actions.add("android.intent.action.DREAMING_STOPPED"); |
| 142 | + actions.add(ACTION_DREAMING_STARTED); |
| 143 | + actions.add(ACTION_DREAMING_STOPPED); |
171 | 144 | actions.add(ACTION_INPUT_METHOD_CHANGED); |
172 | 145 | actions.add(ACTION_LOCALE_CHANGED); |
173 | | - actions.add(ACTION_REBOOT); |
174 | 146 | actions.add(ACTION_SCREEN_OFF); |
175 | 147 | actions.add(ACTION_SCREEN_ON); |
176 | 148 | actions.add(ACTION_TIMEZONE_CHANGED); |
177 | 149 | actions.add(ACTION_TIME_CHANGED); |
178 | 150 | actions.add("android.os.action.DEVICE_IDLE_MODE_CHANGED"); |
179 | 151 | actions.add("android.os.action.POWER_SAVE_MODE_CHANGED"); |
180 | | - // The user pressed the "Report" button in the crash/ANR dialog. |
181 | | - actions.add(ACTION_APP_ERROR); |
182 | | - // Show activity for reporting a bug. |
183 | | - actions.add(ACTION_BUG_REPORT); |
184 | | - |
185 | | - // consider if somebody mounted or ejected a sdcard |
186 | | - actions.add(ACTION_MEDIA_BAD_REMOVAL); |
187 | | - actions.add(ACTION_MEDIA_MOUNTED); |
188 | | - actions.add(ACTION_MEDIA_UNMOUNTABLE); |
189 | | - actions.add(ACTION_MEDIA_UNMOUNTED); |
190 | | - |
191 | 152 | return actions; |
192 | 153 | } |
193 | 154 |
|
|
0 commit comments