commit | b752c3d058c7d1cc550995edc889fec13a5b7562 | [log] [tgz] |
---|---|---|
author | Chaohui Wang <chaohuiw@google.com> | Wed Oct 19 15:57:50 2022 +0800 |
committer | Chaohui Wang <chaohuiw@google.com> | Wed Oct 19 15:57:50 2022 +0800 |
tree | b7cfbbab9ba0f761a647cccf68f5b148910c7417 | |
parent | b036cfabd63bb4caa28c0a09569d5ef58b3371f2 [diff] |
Make the default getTimeSpentInApp() return empty Current ApplicationFeatureProvider.getTimeSpentInApp() defaults returns null, in extreme case there is ACTION_APP_USAGE_SETTINGS handler on device but getTimeSpentInApp() still returns null, may lead AppTimeSpentPreference to crash. Make it returns empty string instead to eliminate this extreme case. Bug: 236346018 Test: Unit test & Manual with SpaActivity Change-Id: I33b413ceb9bdf48e3902e02c91fab617fe297862