Skip to content

Commit ff651a3

Browse files
committed
log when app to handle intent is not found
1 parent c414e4b commit ff651a3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

app/src/main/java/net/vonforst/evmap/MapsActivity.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import android.net.Uri
99
import android.os.Build
1010
import android.os.Bundle
1111
import android.os.SystemClock
12+
import android.util.Log
1213
import android.view.View
1314
import android.widget.Toast
1415
import androidx.appcompat.app.AppCompatActivity
@@ -287,6 +288,7 @@ class MapsActivity : AppCompatActivity(),
287288
R.string.no_maps_app_found,
288289
Snackbar.LENGTH_SHORT
289290
).show()
291+
Log.e("MapsActivity", "no navigation app found")
290292
}
291293
}
292294
}
@@ -351,6 +353,7 @@ class MapsActivity : AppCompatActivity(),
351353
R.string.no_browser_app_found,
352354
Snackbar.LENGTH_SHORT
353355
).show()
356+
Log.e("MapsActivity", "no web browser found")
354357
}
355358
}
356359
}
@@ -368,6 +371,7 @@ class MapsActivity : AppCompatActivity(),
368371
R.string.no_share_app_found,
369372
Snackbar.LENGTH_SHORT
370373
).show()
374+
Log.e("MapsActivity", "no sharing app found")
371375
}
372376
}
373377

0 commit comments

Comments
 (0)