Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2bc234b2 authored by Steve Kondik's avatar Steve Kondik Committed by Gerrit Code Review
Browse files

Merge "Only add WiMAX button option is is supported by the device" into ics

parents eb7bd5fb 4f31cd1f
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@ import com.android.internal.telephony.Phone;
import com.android.settings.R;

import android.content.Context;
/* import android.net.wimax.WimaxHelper; */
import android.net.wimax.WimaxHelper;
import android.provider.Settings;
import android.telephony.TelephonyManager;

@@ -134,10 +134,10 @@ public class PowerWidgetUtil {
        if (buttons == null) {
            buttons = BUTTONS_DEFAULT;
            // Add the WiMAX button if it's supported
            /*
             * if (WimaxHelper.isWimaxSupported(context)) { buttons +=
             * BUTTON_DELIMITER + BUTTON_WIMAX; }
             */
            if (WimaxHelper.isWimaxSupported(context)) {
                buttons += BUTTON_DELIMITER + BUTTON_WIMAX;
            }

            // And the flashlight too if available
            if (context.getResources().getBoolean(R.bool.has_led_flash)) {
                buttons += BUTTON_DELIMITER + BUTTON_FLASHLIGHT;