Fixes Scan Method for Android.

This fixes the scan method when calling from a ViewModel in Android.