Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import com.djangofiles.djangofiles.ServerApi.FileEditRequest
import com.djangofiles.djangofiles.ServerApi.FileResponse
import com.google.android.material.imageview.ShapeableImageView
import com.google.android.material.shape.CornerFamily
import java.util.Locale

//import android.widget.ImageView
//import android.net.ConnectivityManager
Expand Down Expand Up @@ -91,7 +92,8 @@ class FilesViewAdapter(
viewHolder.fileSize.text = bytesToHuman(data.size.toDouble())

// Views
viewHolder.fileView.text = data.view.toString()
//viewHolder.fileView.text = data.view.toString()
viewHolder.fileView.text = String.format(Locale.getDefault(), "%d", data.view)
viewHolder.fileView.compoundDrawableTintList = if (data.view > 0) null else colorOnSecondary

// Private
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout-land/fragment_upload.xml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
android:id="@+id/file_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:autofillHints="File Name"
android:autofillHints=""
android:ellipsize="end"
android:gravity="center"
android:hint="@string/file_name"
Expand Down
5 changes: 3 additions & 2 deletions app/src/main/res/layout/fragment_short.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@
android:id="@+id/url_text"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:autofillHints="URL to Shorten"
android:autofillHints="url"
android:background="@drawable/edit_text_border"
android:ellipsize="end"
android:gravity="top|start"
android:hint="@string/url_hint"
android:inputType="textUri|textMultiLine"
android:overScrollMode="ifContentScrolls"
android:padding="8dp"
Expand All @@ -49,7 +50,7 @@
android:id="@+id/vanity_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:autofillHints="File Name"
android:autofillHints=""
android:ellipsize="end"
android:gravity="center"
android:hint="@string/vanity"
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/layout/fragment_text.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
android:id="@+id/text_content"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:autofillHints="URL to Shorten"
android:autofillHints=""
android:background="@drawable/edit_text_border"
android:ellipsize="end"
android:gravity="top|start"
Expand All @@ -48,7 +48,7 @@
android:id="@+id/vanity_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:autofillHints="File Name"
android:autofillHints=""
android:ellipsize="end"
android:gravity="center"
android:hint="File Name"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/fragment_upload.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
android:id="@+id/file_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:autofillHints="File Name"
android:autofillHints=""
android:ellipsize="end"
android:gravity="center"
android:hint="@string/file_name"
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
<string name="vanity">Vanity</string>
<string name="file_name">File Name</string>
<string name="shorten_url">Shorten URL</string>
<string name="url_hint">URL to Shorten</string>

<string name="feedback_message">**%1$s** `v%2$s` API **%3$s**\n```\n%4$s\n```</string>

Expand Down
Loading