Skip to content

Commit 3dd9e51

Browse files
committed
fix: fix example app att code snippet
1 parent dcc0115 commit 3dd9e51

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

example/lib/main.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,8 @@ class _MyHomePageState extends State<MyHomePage> with WidgetsBindingObserver {
262262
// Ask for tracking consent.
263263
Adjust.requestAppTrackingAuthorization().then((status) {
264264
print('[Adjust]: Authorization status update!');
265-
switch (status) {
265+
final int statusInt = status.toInt();
266+
switch (statusInt) {
266267
case 0:
267268
print(
268269
'[Adjust]: Authorization status update: ATTrackingManagerAuthorizationStatusNotDetermined');

0 commit comments

Comments
 (0)