Beispiel #1
0
 /**
  * Turns the backlight off
  *
  * @see #lightOn()
  */
 public static void lightOff() {
   // #if polish.HasOptionalApis
   if (!controllerInitializationDone) {
     initController();
   }
   if (controller != null) {
     controller.lightOn();
   }
   // #elif polish.android
   MidletBridge.instance.backlightRelease();
   // #else
   synchronized (lightsLock) {
     // #if tmp.useNokiaUi
     com.nokia.mid.ui.DeviceControl.setLights(0, 0);
     // #elif tmp.useBlackBerry
     net.rim.device.api.system.Backlight.enable(false);
     // #elif tmp.useThread
     DeviceControl dc = thread;
     if (dc != null) {
       dc.switchLightOff();
       thread = null;
     }
     // #endif
   }
   // #endif
 }