Skip to content

Commit

Permalink
chore : 템플릿 선택 후 뒤로가기시 생기는 표시 버그 수정
Browse files Browse the repository at this point in the history
템플릿을 고른 후 뒤로가기 버튼을 눌렀을 때 템플릿이 제대로 펼쳐지지 않고 팅기는 오류 수정.
  • Loading branch information
Mango-Juice committed Feb 14, 2022
1 parent 5a7c7d8 commit 997ea1d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.example.plandial;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
Expand All @@ -21,7 +22,9 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
{
// 뒤로가기 버튼 설정
ImageButton backButton = findViewById(R.id.BackButton);
backButton.setOnClickListener(view -> finish());
Intent intent = new Intent(this, TemplateChoiceActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
backButton.setOnClickListener(view -> startActivity(intent));
}

{
Expand Down

1 comment on commit 997ea1d

@Mango-Juice
Copy link
Member Author

Choose a reason for hiding this comment

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

해당 코드로 해결되지 않아 다시 롤백하였습니다.
추후 수정이 필요합니다.
(#27)

Please sign in to comment.