public void onReceive(Context context, Intent intent) { String action = intent.getAction(); if (action != null) { for (QuickSettingsTile t : mReceiverMap.get(action)) { t.onReceive(context, intent); } } }