Commit 32115b77 authored by wanglei's avatar wanglei

...

parent 03a68214
......@@ -119,7 +119,6 @@ class HomeFragment() : Fragment() {
binding.swipeRefreshLayout.setOnRefreshListener {
refreshData("swipeRefreshLayout")
}
refreshData("onViewCreated")
}
override fun onDestroyView() {
......@@ -171,7 +170,7 @@ class HomeFragment() : Fragment() {
override fun onResume() {
super.onResume()
if (requireContext().checkStorePermission()) {
refreshData()
refreshData("onResume")
}
}
......
......@@ -97,6 +97,7 @@ object DocumentDialog {
val params = dialog.window?.attributes
params?.gravity = Gravity.CENTER
params?.width = resources.getDimensionPixelSize(R.dimen.dp_345)
dialog.window?.attributes = params
dialog.window?.setBackgroundDrawableResource(android.R.color.transparent)
......
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#FD5910" />
<corners android:radius="10dp" />
</shape>
\ No newline at end of file
......@@ -32,6 +32,7 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="20dp"
android:background="@color/white"
android:orientation="vertical"
app:layout_constraintBottom_toBottomOf="parent"
......@@ -141,9 +142,7 @@
android:layout_height="wrap_content"
android:layout_marginHorizontal="15dp"
android:layout_marginTop="16dp"
android:ellipsize="end"
android:includeFontPadding="false"
android:maxLines="2"
android:textColor="@color/black"
android:textSize="14sp"
tools:text="/data/user/0/com.pdfviewer.scanner/files/ demo/DEMO.pdf" />
......@@ -241,8 +240,8 @@
android:layout_gravity="center_horizontal"
android:layout_marginHorizontal="20dp"
android:layout_marginTop="10dp"
android:layout_marginBottom="25dp"
android:background="@drawable/bg_00b8de_10"
android:layout_marginBottom="5dp"
android:background="@drawable/bg_fd5910_10"
android:gravity="center"
android:text="OK"
android:textColor="@color/white"
......
......@@ -2,4 +2,5 @@
<resources>
<dimen name="dp_200">200dp</dimen>
<dimen name="dp_146">146dp</dimen>
<dimen name="dp_345">345dp</dimen>
</resources>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment