commit | cbe32d35d67b1bfdd2958e4ee7e5452e570b4cce | [log] [tgz] |
---|---|---|
author | Takanori Nakano <takanori.nakano@sony.com> | Thu Jul 20 17:10:46 2017 +0900 |
committer | Yoshiaki Naka <yoshiaki.naka@sonymobile.com> | Thu Jul 20 17:48:34 2017 +0900 |
tree | d0327816bb87694f0cac315e7d3a8149894e5094 | |
parent | 528f2dc222b43972fe7a019e7daa4f81c213fad4 [diff] |
AlertDialog should not be instantiated in onResume() The original code instantiates AlertDialog and shows it whenever the activity is resumed, so a lot of instances of AlertDialog can be linked with one activity. That can be avoided if we move the dialog related code from onResume() to onCreate(). Bug: 63875731 Test: Confirmed that the leakage issue is solved in the manual test Change-Id: I9a0ef5956a75e1958b5a36961f6a56d4272a18f6