示例#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");
 }
示例#2
0
 public static void initCircleInCaseLoadingFirstTime() {
   SharedPreferences localSharedPreferences =
       PreferenceManager.getDefaultSharedPreferences(
           CircleWidget3DProvider.CircleService.getServiceContext());
   if (localSharedPreferences.getBoolean("first_time_circle_load", true)) {
     CircleAlert.setAlertState(false);
     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");
     changeVisibility("circle_battery/level", true);
     SharedPreferences.Editor localEditor = localSharedPreferences.edit();
     localEditor.putBoolean("first_time_circle_load", false);
     localEditor.apply();
   }
 }
示例#3
0
 public static void showAlertScreen() {
   CircleAlert.setAlertState(true);
 }
示例#4
0
 public static void hideAlertScreen() {
   CircleAlert.setAlertState(false);
 }