-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AOSP/Email - Added WidgetService#isWidgetSupported to check if widget…
…s are supported on the device and avoid calling AppWidgetManager#getInstance if not supported to avoid NullPointerException. + AppWidgetManager#getInstance will return null from Android-P on those devices according to b/79158204. getCurrentWidgetIds returns empty widgets if it is nor supported. + Fixed the email tests so that they all pass. + Bumped the targetSdkVersion to 21 to be consistent across Email and UnifiedEmail. Bug: 120461090 Test: manual - Ran the following CTS tests on Pixel phone. Tested the email UI. $ make -j 40 -rw-r--r-- 1 rtenneti primarygroup 6836038 Dec 11 15:50 out/target/product/marlin/system/app/Email/Email.apk $ make UnifiedEmailTests -j -rw-r--r-- 1 rtenneti primarygroup 303511 Dec 11 15:51 out/target/product/marlin/data/app/UnifiedEmailTests/UnifiedEmailTests.apk $ make EmailTests -j -rw-r--r-- 1 rtenneti primarygroup 365023 Dec 11 15:51 out/target/product/marlin/testcases/EmailTests/EmailTests.apk $ adb install -r out/target/product/marlin/system/app/Email/Email.apk Tested sending email from [email protected] with attachments to [email protected] with the new Email App. Date: Tue, 11 Dec 2018 15:55:58 -0800 Subject: Test From: [email protected] To: [email protected] MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="--_com.android.email_5144357158777900" ----_com.android.email_5144357158777900 Content-Type: application/octet-stream; name="shared_prefs" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="shared_prefs"; size=3864 ----_com.android.email_5144357158777900-- $ adb install -r out/target/product/marlin/data/app/UnifiedEmailTests/UnifiedEmailTests.apk $ adb install -r out/target/product/marlin/testcases/EmailTests/EmailTests.apk $ adb shell am instrument -w com.android.email.tests Time: 2.04 OK (157 tests) + No exceptions in AppWidgetManager class or getCurrentWidgetIds + logcat output is at https://rtenneti.users.x20web.corp.google.com/logcat/logcat.out.message.1211.1542 Change-Id: I5843c2990340995627b45ceace5e3f660b0101b8
- Loading branch information
1 parent
5470708
commit 0bbc136
Showing
6 changed files
with
21 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters