I had the same problem, but I finally found a solution. Take a look at AccountPicker.class, where the methods are: newChooseAccountIntent () and zza ();
You have to change
AccountPicker.newChooseAccountIntent(null, null, accountTypes, false, null, null, null, null);
to
AccountPicker.zza(null, null, accountTypes, false, null, null, null, null, false, 1, 0);
The last two arguments are for "overrideTheme" and "overrideCustomTheme". So set the first to 1 and it will redefine the theme for coverage. :-)
Hope this helps.
source share