Pass the correct match parameter for replacePreferredActivity().
PackageManager.replacePreferredActivity() only accepts intent filter with an optional scheme, so the match parameter should be either MATCH_CATEGORY_SCHEME or MATCH_CATEGORY_EMPTY based on whether there is a data scheme. Bug: 110557011 Test: manual Change-Id: Ied939113eb7d15d47efb524ffb85a4818e2aa8e0
Loading
Please register or sign in to comment