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"); }
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(); } }
public static void showAlertScreen() { CircleAlert.setAlertState(true); }
public static void hideAlertScreen() { CircleAlert.setAlertState(false); }