Skip to content

Commit acf0460

Browse files
committed
complete name refactoring
1 parent c5dbbf1 commit acf0460

File tree

7 files changed

+11
-21
lines changed

7 files changed

+11
-21
lines changed

thepeer-android/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
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"

thepeer-android/src/main/java/co/thepeer/sdk/ui/activity/ThepeerSdkActivity.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ import android.os.Bundle
44
import androidx.appcompat.app.AppCompatActivity
55
import co.thepeer.sdk.databinding.SdkActivityBinding
66
import co.thepeer.sdk.model.ThepeerParam
7-
import co.thepeer.sdk.ui.fragments.HostDialogFragment
7+
import co.thepeer.sdk.ui.fragments.ThepeerFragment
88
import co.thepeer.sdk.utils.ThepeerConstants
9-
import com.google.android.material.bottomsheet.BottomSheetDialogFragment
109

1110
class 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

thepeer-android/src/main/java/co/thepeer/sdk/ui/fragments/HostDialogFragment.kt renamed to thepeer-android/src/main/java/co/thepeer/sdk/ui/fragments/ThepeerFragment.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@ import android.webkit.WebViewClient
1111
import androidx.appcompat.app.AppCompatActivity
1212
import androidx.core.view.isVisible
1313
import 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
1615
import co.thepeer.sdk.model.ThepeerParam
16+
import co.thepeer.sdk.model.ThepeerResult
1717
import co.thepeer.sdk.utils.Logger
1818
import co.thepeer.sdk.utils.ThepeerConstants
1919
import co.thepeer.sdk.utils.Urls
2020
import 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

thepeer-android/src/main/res/values/styles.xml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,10 @@
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">

0 commit comments

Comments
 (0)