Skip to content

Commit

Permalink
#91 네트워크 연결 확인 다이얼로그 작업 완료
Browse files Browse the repository at this point in the history
  • Loading branch information
pknujsp committed Jun 8, 2023
1 parent 17b1b81 commit 7a89aaa
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
4 changes: 1 addition & 3 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,19 @@
android:name="android.hardware.camera"
android:required="true" />


<application
android:name=".MediApplication"
android:allowBackup="true"
android:icon="@mipmap/ic_medilenz"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/Theme.MediProject"
android:usesCleartextTraffic="true">
<activity
android:name=".MainActivity"
android:exported="true"
android:screenOrientation="portrait"
android:theme="@style/Theme.App.Starting"
android:windowSoftInputMode="adjustResize|adjustPan">
android:windowSoftInputMode="adjustUnspecified">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,28 @@ import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.android.mediproject.databinding.ViewNetworkStateBinding
import com.google.android.material.bottomsheet.BottomSheetDialogFragment
import dagger.hilt.android.AndroidEntryPoint

@AndroidEntryPoint
class NetworkStateDialogFragment : BottomSheetDialogFragment() {

private var _binding: BindingView
private var _binding: ViewNetworkStateBinding? = null

private val binding get() = _binding!!

override fun onCreateView(
inflater: LayoutInflater,
container: ViewGroup?,
savedInstanceState: Bundle?
): View? = inflater.inflate(R.layout.modal_bottom_sheet_content, container, false)
inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?
): View = ViewNetworkStateBinding.inflate(layoutInflater, container, false).also {
_binding = it
}.root

override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
binding.okButton.setOnClickListener {
dismiss()
requireActivity().finish()
}
}
}

0 comments on commit 7a89aaa

Please sign in to comment.