Skip to content

Commit ea78c26

Browse files
authored
Merge pull request #169 from adjust/fix_example_app_att_snippet
Fix example app ATT code snippet
2 parents dcc0115 + 3dd9e51 commit ea78c26

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)