당직근무 0.15.3 (웹 2026-11-25.7): 일반근무 이름 한 칸 빼기

0.14.2에 넣은 일반근무 이름(일반근무 전체를 이름 하나로 바꾸기)은 요청을 잘못 알아들어 만든 기능이다.
사용자가 원한 것은 내 당직 기준 +1(비번)부터 근무마다 다른 사람 이름을 넣는 근무 순서 이름(0.15.0)이다.

- 앱 옵션 → 달력 표시와 웹 옵션에서 일반근무 이름 칸을 뺐다. 일반근무 글자 숨기기는 그대로다.
- 이미 저장된 regularName 값은 앱·웹·구독 제목 어디에도 쓰지 않는다. 서버는 옛 앱이 보내는 값을 받아 보관만 한다.
- 관리자 기본값 defaultRegularName을 뺐다.
- 앱 0.15.3 / 설치 번호 27. APK 875910바이트, SHA-256 eec32492c43f34b45148308793213d3a55661ccd70bc69a6e9bce020787a10a6
This commit is contained in:
블리어 committed 2026-11-25 03:46:26 +00:00
1 parent 5574172a1a
commit 1777ea4b1e
19 files changed
+49 -68

No files matched your search

@@ -80,14 +80,14 @@ object WidgetAppearanceCheck {
val sunHeader=month.findViewById<TextView>(if(start==1)R.id.widget_saturday else R.id.widget_sun)
check(sunHeader.currentTextColor==WidgetStyle().color(0xFFBD5163.toInt()))
}
// 일반근무 이름을 바꾸면 위젯 칸에도 같은 이름이 보이고 다른 근무와 날짜 계산은 그대로다.
// 0.15.3부터 옛 '일반근무 이름' 값이 남아 있어도 위젯 칸은 기본 이름(일반)이다. 숨기기는 그대로 쓴다.
if(ScheduleStore.isConfigured(app)) for((name,hide) in listOf("사무실" to false,"사무실" to true,"" to false)) {
val current=ScheduleStore.load(app)
ScheduleStore.saveDisplay(app,current.dutyAsWeekday,current.showLunar,current.offAsHoliday,current.weekStart,fromSync=true,regularName=name,hideRegular=hide)
val schedule=ScheduleStore.load(app)
val month=render(99001,500)
val dates=calendarDays(java.time.YearMonth.now(),schedule.weekStart)
val expected=if(name.isEmpty())"일반" else name
val expected="일반"
DutyWidget.DAY_IDS.forEachIndexed { index,cellId ->
val shift=schedule.shiftOn(dates[index])
val lines=month.findViewById<TextView>(cellId).text.toString().lines()
@@ -202,7 +202,7 @@ object WidgetAppearanceCheck {
}
failure?.let{throw it}
success=true
message="근무 순서 이름 세 가지 표시와 일반근무 이름 바꾸기·숨기기 및 기본 이름 복귀 확인. 네 종류의 기본 배치와 한 달 전체 선택 확인. 월·일 시작과 80·100·120% 및 최소·확장 크기에서 42칸과 모든 날짜 및 마지막 주의 글자 높이와 생략 없음 확인. 월 이동과 연말 넘김 및 오늘 복귀와 개별 저장 및 구버전 설정 보존 확인."
message="근무 순서 이름 세 가지 표시와 옛 일반근무 이름 무시와 일반근무 글자 숨기기 확인. 네 종류의 기본 배치와 한 달 전체 선택 확인. 월·일 시작과 80·100·120% 및 최소·확장 크기에서 42칸과 모든 날짜 및 마지막 주의 글자 높이와 생략 없음 확인. 월 이동과 연말 넘김 및 오늘 복귀와 개별 저장 및 구버전 설정 보존 확인."
} catch(error:Throwable) {message=error.stackTraceToString()}
finally {
val scheduleRestore=schedulePrefs.edit()