OSDN Git Service

AnalyticsService: get rid of getBaseContext()
authorChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 19 Oct 2017 03:12:00 +0000 (11:12 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 19 Oct 2017 03:12:00 +0000 (11:12 +0800)
commita9c4d5074a7b72e436033d4d93fe2fdff733f3f1
tree196eaaa1106ac6ab9c4dbcb665bf2a0da720153c
parent7fb018989776c73a66d647817cc4c0136a7e02ee
AnalyticsService: get rid of getBaseContext()

According to Dianne Hackborn, the Google chief engineer working on
the Android framework:

"Don't use getBaseContext(), just use the Context you have."

Refer to http://stackoverflow.com/questions/1026973 for the usages
of various Contexts.
Service/src/org/android_x86/analytics/AnalyticsService.java