File tree Expand file tree Collapse file tree 7 files changed +11
-21
lines changed Expand file tree Collapse file tree 7 files changed +11
-21
lines changed Original file line number Diff line number Diff line change 55 <uses-permission android : name =" android.permission.INTERNET" />
66 <uses-permission android : name =" android.permission.ACCESS_NETWORK_STATE" />
77
8- <application
9- >
8+ <application >
109 <activity
1110 android : name =" .ui.activity.ThepeerSdkActivity"
1211 android : theme =" @style/ThepeerSDKTheme"
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -4,9 +4,8 @@ import android.os.Bundle
44import androidx.appcompat.app.AppCompatActivity
55import co.thepeer.sdk.databinding.SdkActivityBinding
66import co.thepeer.sdk.model.ThepeerParam
7- import co.thepeer.sdk.ui.fragments.HostDialogFragment
7+ import co.thepeer.sdk.ui.fragments.ThepeerFragment
88import co.thepeer.sdk.utils.ThepeerConstants
9- import com.google.android.material.bottomsheet.BottomSheetDialogFragment
109
1110class ThepeerSdkActivity : AppCompatActivity () {
1211 private var params: ThepeerParam ? = null
@@ -19,7 +18,7 @@ class ThepeerSdkActivity : AppCompatActivity() {
1918
2019 params?.let {
2120 supportFragmentManager.beginTransaction()
22- .replace(binding.fragmentContainer.id, HostDialogFragment (it))
21+ .replace(binding.fragmentContainer.id, ThepeerFragment (it))
2322 .commit()
2423 }
2524
Original file line number Diff line number Diff line change @@ -11,19 +11,19 @@ import android.webkit.WebViewClient
1111import androidx.appcompat.app.AppCompatActivity
1212import androidx.core.view.isVisible
1313import androidx.fragment.app.Fragment
14- import co.thepeer.sdk.databinding.FragmentHostDialogBinding
15- import co.thepeer.sdk.model.ThepeerResult
14+ import co.thepeer.sdk.databinding.FragmentThepeerBinding
1615import co.thepeer.sdk.model.ThepeerParam
16+ import co.thepeer.sdk.model.ThepeerResult
1717import co.thepeer.sdk.utils.Logger
1818import co.thepeer.sdk.utils.ThepeerConstants
1919import co.thepeer.sdk.utils.Urls
2020import co.thepeer.sdk.utils.WebInterface
2121
2222
23- class HostDialogFragment (private val thePeerParam : ThepeerParam ) :
23+ class ThepeerFragment (private val thePeerParam : ThepeerParam ) :
2424 Fragment () {
2525
26- private lateinit var binding: FragmentHostDialogBinding
26+ private lateinit var binding: FragmentThepeerBinding
2727
2828 companion object {
2929 private const val TAG = " TestFragment"
@@ -35,7 +35,7 @@ class HostDialogFragment(private val thePeerParam: ThepeerParam) :
3535 container : ViewGroup ? ,
3636 savedInstanceState : Bundle ?
3737 ): View ? {
38- binding = FragmentHostDialogBinding .inflate(layoutInflater)
38+ binding = FragmentThepeerBinding .inflate(layoutInflater)
3939 return binding.root
4040 }
4141
File renamed without changes.
Original file line number Diff line number Diff line change 44 <style name =" ThepeerSDKTheme" parent =" Theme.MaterialComponents.Light.NoActionBar" >
55 <item name =" windowActionBar" >false</item >
66 <item name =" android:windowNoTitle" >true</item >
7- <item name =" android:windowIsTranslucent" >true</item >
8- <item name =" android:windowActionBar" >false</item >
7+ <item name =" android:windowActionBar" >true</item >
98 <item name =" android:windowFullscreen" >true</item >
10- <item name =" colorPrimary" >@color/colorPrimary</item >
11- <item name =" colorPrimaryDark" >@color/colorPrimaryDark</item >
12- <item name =" colorAccent" >@color/colorAccent</item >
13- <item name =" android:windowBackground" >@android:color/transparent</item >
14- <item name =" android:colorBackgroundCacheHint" >@null</item >
15- <item name =" android:background" >@android:color/transparent</item >
16- <item name =" android:textColorSecondary" >@color/secondaryTextColor</item >
17-
18-
9+ <item name =" android:windowContentOverlay" >@null</item >
10+ <item name =" android:statusBarColor" >@color/unclearWhite</item >
1911 </style >
2012
2113 <style name =" CustomBottomSheetDialogTheme" parent =" Theme.MaterialComponents.Light.BottomSheetDialog" >
You can’t perform that action at this time.
0 commit comments