Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[스캇] 1, 2단계 영화 극장 선택 제출합니다. #23

Merged
merged 32 commits into from
Apr 30, 2023
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
0991106
feat: merge
RightHennessy Apr 25, 2023
79905b9
docs: 기능 목록 추가
RightHennessy Apr 25, 2023
09116ef
feat: 바텀네비게이션 xml 구현
RightHennessy Apr 25, 2023
5d01561
feat: 메인 엑티비티 초기 구현
RightHennessy Apr 25, 2023
af1fc7f
feat: setting fragment 기능 구현
RightHennessy Apr 25, 2023
a42ecc7
feat: MoviesFragment 구현
chws0508 Apr 25, 2023
9c2cc90
feat: reservation fragment xml 구현
chws0508 Apr 25, 2023
1de0306
feat: reservationList fragment 구현
chws0508 Apr 25, 2023
3434e71
feat: 바텀 네비게이션 동작 구현
chws0508 Apr 26, 2023
a0b5c81
feat: 예매 내역을 터치하면 예매 정보를 보여준다.
chws0508 Apr 26, 2023
9b23515
feat: 클릭 시 효과주기 구현
chws0508 Apr 26, 2023
48f3d2d
docs: step2 기능 목록 구현
chws0508 Apr 26, 2023
9983bf9
docs: 설정 화면 구현
chws0508 Apr 26, 2023
7189bf3
feat : 권한 요청 구현
chws0508 Apr 26, 2023
2416121
feat : 푸시 알림 정보 저장
chws0508 Apr 26, 2023
3700c4b
feat : 알림 기능 구현
chws0508 Apr 26, 2023
bd4343d
feat : 푸시 알림 on/off 적용
chws0508 Apr 27, 2023
a5d6aef
refactor: 함수 분리
RightHennessy Apr 27, 2023
114d4e2
feat : 설정 화면 UI Test 구현
chws0508 Apr 27, 2023
d0c5c66
feat : NotificationHelper 로 분리
chws0508 Apr 27, 2023
93480e9
feat : Test 코드 패키지 일치
chws0508 Apr 28, 2023
a65f934
feat : 테스트명 한글로 수정
chws0508 Apr 28, 2023
eede551
feat : SettingPreferenceManager 오브젝트 구현
chws0508 Apr 30, 2023
a5705cb
feat : PushAlarmSwitch 클래스 구현
chws0508 Apr 30, 2023
70e6f0b
refactor : Fragment 는 switch 가 켜져있는지만 알 수 있도록 수정
chws0508 Apr 30, 2023
04cf373
refactor : Fragment Test 수정
chws0508 Apr 30, 2023
6bd969b
refactor : onViewCreated 에서 View 작업을 하도록 수정
chws0508 Apr 30, 2023
66bc737
refactor : Permission 요청 함수 분리 및, SettingPreferenceManager 오브젝트 패키지 이동
chws0508 Apr 30, 2023
d962bd5
refactor : 화면 회전시 기존 fragmet 유지
chws0508 Apr 30, 2023
b0e1f66
refactor : onCreateView 삭제
chws0508 Apr 30, 2023
267e92c
refactor : ReservationAlarmManager 구현
chws0508 Apr 30, 2023
e148872
refactor : NotificationReceiver 수정
chws0508 Apr 30, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat : PushAlarmSwitch 클래스 구현
  • Loading branch information
chws0508 committed Apr 30, 2023
commit a5705cb35dd78aea0eaaa985c642ac48063d981f
17 changes: 17 additions & 0 deletions app/src/main/java/woowacourse/movie/view/PushAlarmSwitch.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package woowacourse.movie.view

import android.content.Context
import android.util.Log
import android.widget.Switch
import androidx.appcompat.widget.SwitchCompat
import woowacourse.SettingPreferenceManager

class PushAlarmSwitch(val view: Switch) {
init {
SettingPreferenceManager.inIt(view.context)
view.isChecked = SettingPreferenceManager.getAlarmReceptionStatus()
view.setOnClickListener {
SettingPreferenceManager.changeAlarmReceptionStatus()
}
}
}
Comment on lines +6 to +14

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PushAlaramSwitch는 클래스로 분리된 장점이 없습니다.

단순히 private 함수로 존재할 내용이 클래스로 만들어진 차이만 가지고 있어요.

실제로 PushAlarmSwitch의 역할을 하는 것으로 기대한다면,
Switch를 상속받은 커스텀 뷰를 구현하는게 맞습니다.

다만 현재 미션에서의 요구사항은 아니기에 참고만 해 주시면 좋겠습니다.