16b4bce136
CI / build (push) Failing after 14m36s
- AppBottomNav: position fixed 하단 고정(스크롤 무관 상시 노출), 아이콘 전용(28px) - MainActivity: 시스템 바 인셋만큼 웹뷰 패딩 — 에지투에지(targetSdk36)에서 소프트키 겹침 해소 - ProfileEditView: 정보변경 화면에 비밀번호 변경 섹션 흡수(현재 비밀번호 재사용) - AppHeader 비밀번호 아이콘·App.vue ChangePasswordModal 마운트 제거(진입점 일원화) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
31 lines
1.2 KiB
Java
31 lines
1.2 KiB
Java
package kr.sblog.slimbudget;
|
|
|
|
import android.os.Bundle;
|
|
import android.view.View;
|
|
|
|
import androidx.core.graphics.Insets;
|
|
import androidx.core.view.ViewCompat;
|
|
import androidx.core.view.WindowInsetsCompat;
|
|
|
|
import com.getcapacitor.BridgeActivity;
|
|
|
|
public class MainActivity extends BridgeActivity {
|
|
@Override
|
|
public void onCreate(Bundle savedInstanceState) {
|
|
registerPlugin(CardNotifPlugin.class);
|
|
super.onCreate(savedInstanceState);
|
|
|
|
// targetSdk 35+ 의 에지투에지 강제 환경에서 웹뷰가 상태바/소프트키(시스템 내비) 뒤로
|
|
// 깔리는 것을 방지한다. 시스템 바 인셋만큼 웹뷰에 패딩을 줘서 콘텐츠(하단 고정 내비 포함)가
|
|
// 항상 안전 영역 안에 오도록 한다. (CSS env(safe-area-*) 가 기기별로 0 을 반환하는 문제 회피)
|
|
final View webView = getBridge().getWebView();
|
|
if (webView != null) {
|
|
ViewCompat.setOnApplyWindowInsetsListener(webView, (v, insets) -> {
|
|
Insets bars = insets.getInsets(WindowInsetsCompat.Type.systemBars());
|
|
v.setPadding(bars.left, bars.top, bars.right, bars.bottom);
|
|
return insets;
|
|
});
|
|
}
|
|
}
|
|
}
|