Skip to content

Commit

Permalink
Merge 6d4599b into 5f3b2a8
Browse files Browse the repository at this point in the history
  • Loading branch information
Cody Henthorne committed Jan 31, 2019
2 parents 5f3b2a8 + 6d4599b commit 7ecbe2e
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -9,6 +9,7 @@
import android.app.KeyguardManager;
import android.app.NotificationManager;
import android.app.SearchManager;
import android.content.ClipboardManager;
import android.content.ContentResolver;
import android.content.SharedPreferences;
import android.content.pm.PackageInfo;
Expand Down Expand Up @@ -40,6 +41,7 @@
import static android.content.Context.ACTIVITY_SERVICE;
import static android.content.Context.ALARM_SERVICE;
import static android.content.Context.AUDIO_SERVICE;
import static android.content.Context.CLIPBOARD_SERVICE;
import static android.content.Context.CONNECTIVITY_SERVICE;
import static android.content.Context.DOWNLOAD_SERVICE;
import static android.content.Context.INPUT_METHOD_SERVICE;
Expand Down Expand Up @@ -99,6 +101,7 @@ private void bindSystemServices(Application application) {
bindSystemService(application, TelephonyManager.class, TELEPHONY_SERVICE);
bindSystemService(application, AudioManager.class, AUDIO_SERVICE);
bindSystemService(application, DownloadManager.class, DOWNLOAD_SERVICE);
bindSystemService(application, ClipboardManager.class, CLIPBOARD_SERVICE);
}

private <T> void bindSystemService(Application application, Class<T> serviceClass, String serviceName) {
Expand Down

0 comments on commit 7ecbe2e

Please sign in to comment.