Rename file

This commit is contained in:
Benoit Marty 2021-06-18 15:02:12 +02:00
parent 1ffe57ce94
commit a619b0141a
3 changed files with 5 additions and 4 deletions

View File

@ -21,12 +21,12 @@ import android.view.LayoutInflater
import android.view.View import android.view.View
import android.view.ViewGroup import android.view.ViewGroup
import com.google.android.material.bottomsheet.BottomSheetDialogFragment import com.google.android.material.bottomsheet.BottomSheetDialogFragment
import im.vector.lib.ui.styles.databinding.ActivityTestMaterialThemeBinding import im.vector.lib.ui.styles.databinding.ActivityDebugMaterialThemeBinding
class DebugBottomSheet : BottomSheetDialogFragment() { class DebugBottomSheet : BottomSheetDialogFragment() {
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View { override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View {
// Reuse tha Activity layout // Reuse tha Activity layout
val binding = ActivityTestMaterialThemeBinding.inflate(inflater, container, false) val binding = ActivityDebugMaterialThemeBinding.inflate(inflater, container, false)
return binding.root return binding.root
} }
} }

View File

@ -23,14 +23,14 @@ import androidx.appcompat.app.AppCompatActivity
import com.google.android.material.dialog.MaterialAlertDialogBuilder import com.google.android.material.dialog.MaterialAlertDialogBuilder
import com.google.android.material.snackbar.Snackbar import com.google.android.material.snackbar.Snackbar
import im.vector.lib.ui.styles.R import im.vector.lib.ui.styles.R
import im.vector.lib.ui.styles.databinding.ActivityTestMaterialThemeBinding import im.vector.lib.ui.styles.databinding.ActivityDebugMaterialThemeBinding
// Rendering is not the same with VectorBaseActivity // Rendering is not the same with VectorBaseActivity
abstract class DebugMaterialThemeActivity : AppCompatActivity() { abstract class DebugMaterialThemeActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) { override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState) super.onCreate(savedInstanceState)
val views = ActivityTestMaterialThemeBinding.inflate(layoutInflater) val views = ActivityDebugMaterialThemeBinding.inflate(layoutInflater)
setContentView(views.root) setContentView(views.root)
setSupportActionBar(views.debugToolbar) setSupportActionBar(views.debugToolbar)

View File

@ -263,6 +263,7 @@
style="@style/DebugTextColorDemo.Black" style="@style/DebugTextColorDemo.Black"
android:background="?android:textColorLink" android:background="?android:textColorLink"
android:text="android:textColorLink" /> android:text="android:textColorLink" />
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>