Beispiel #1
0
 public static void showAnalogClock() {
   CircleAlert.setAlertState(false);
   CircleClock localCircleClock = CircleClock.getInstance(null);
   localCircleClock.setAnalogClockState(-1);
   localCircleClock.updateCircle();
   boolean[] arrayOfBoolean = {true, true, true, true};
   changeVisibility(null, CircleClock.CLOCK_HANDS_SHAPES, arrayOfBoolean);
   updateTexture(null, "circle_time/circlefront:t1", "clock_front_mask");
   updateTexture(null, "circle_time/circleback:t1", "clock_back_mask");
 }
Beispiel #2
0
  public static void sendAllTextures() {
    initCircleInCaseLoadingFirstTime();
    playFrames(null, 0, 120, 1L, "start_anim_id");
    CircleBattery circlebattery = CircleBattery.getInstance(null);
    CircleClock circleclock;
    if (!circlebattery.shouldDisplayDataCircle()
        && (!Config.isDeviceDataSupported() || !CircleData.isFrontSideIsDataCircle()))
      circlebattery.updateCircle();
    else if (Config.isDeviceDataSupported()) CircleData.getInstance(null).updateCircle();
    if (circlebattery.isFlipped()) flipCircle(null, "circle_battery", 300F, false);
    else if (CircleWidget3DProvider.isDataServiceAvail()
        && CircleData.isDataCircleEnable()
        && CircleData.isHasCachedData()) CircleData.getInstance(null).populateData();
    circleclock = CircleClock.getInstance(null);
    circleclock.setAnalogClockState(-1);
    if (CircleHelp.isHelpDisplayed()) CircleHelp.getInstance(null).restoreHelpState();
    circleclock.getAlarmCondition();
    circleclock.updateCircle();
    if (circleclock.isFlipped()) flipCircle(null, "circle_time", 300F, false);
    final CircleWeather circleweather = CircleWeather.getInstance(null);
    CircleAlert.loadLastAlert();
    circleweather.setFlipped(false);
    circleweather.preUpdateCircle();
    (new Thread(
            new Runnable() {

              public void run() {
                try {
                  Thread.sleep(1400L);
                  circleweather.postUpdateCircle(true);
                  return;
                } catch (InterruptedException interruptedexception) {
                  interruptedexception.printStackTrace();
                }
              }
            }))
        .start();
  }