minor changes

This commit is contained in:
Thibault Deckers 2021-09-07 20:02:50 +09:00
parent 4a695678b5
commit e5867515e3
2 changed files with 8 additions and 0 deletions

View file

@ -31,6 +31,10 @@ class MainActivity : FlutterActivity() {
override fun onCreate(savedInstanceState: Bundle?) { override fun onCreate(savedInstanceState: Bundle?) {
Log.i(LOG_TAG, "onCreate intent=$intent") Log.i(LOG_TAG, "onCreate intent=$intent")
intent.extras?.takeUnless { it.isEmpty }?.let {
Log.i(LOG_TAG, "onCreate intent extras=$it")
}
// StrictMode.setThreadPolicy( // StrictMode.setThreadPolicy(
// StrictMode.ThreadPolicy.Builder() // StrictMode.ThreadPolicy.Builder()
// .detectAll() // .detectAll()
@ -194,6 +198,9 @@ class MainActivity : FlutterActivity() {
"query" to intent.getStringExtra(SearchManager.QUERY), "query" to intent.getStringExtra(SearchManager.QUERY),
) )
} }
Intent.ACTION_RUN -> {
// flutter run
}
else -> { else -> {
Log.w(LOG_TAG, "unhandled intent action=${intent?.action}") Log.w(LOG_TAG, "unhandled intent action=${intent?.action}")
} }

View file

@ -467,6 +467,7 @@ object StorageUtils {
} }
} catch (e: Exception) { } catch (e: Exception) {
// unsupported format // unsupported format
Log.w(LOG_TAG, "failed to initialize MediaMetadataRetriever for uri=$uri")
null null
} }
} }