Skip to content

Commit

Permalink
Merge pull request #2 from vishalkalra9/lock-image-pdf
Browse files Browse the repository at this point in the history
Lock image pdf
  • Loading branch information
vishalkalra9 authored Aug 2, 2018
2 parents 7be1e9f + 00f9aca commit 46d4536
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public void onBindViewHolder(@NonNull ViewFilesHolder holder, final int pos) {
try {
new PdfReader(file.getPath());
} catch (IOException e) {
isEncrypted=true;
isEncrypted = true;
}
holder.mFilename.setText(file.getName());
holder.mFilesize.setText(FileUtils.getFormattedSize(file));
Expand Down Expand Up @@ -362,7 +362,6 @@ public class ViewFilesHolder extends RecyclerView.ViewHolder {
@BindView(R.id.encryptionImage)
ImageView mEncryptionImage;


ViewFilesHolder(View itemView) {
super(itemView);
ButterKnife.bind(this, itemView);
Expand Down
10 changes: 4 additions & 6 deletions app/src/main/res/layout/item_file.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@
<TextView
android:id="@+id/fileSize"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:layout_weight="1"
android:maxLines="1"
android:padding="10dp"
android:text="@string/file_size_text"
Expand All @@ -76,14 +76,13 @@
<ImageView
android:id="@+id/encryptionImage"
android:layout_width="20dp"
android:layout_gravity="center_vertical"
android:layout_height="20dp"
android:layout_gravity="center_vertical"
android:layout_marginLeft="15dp"
android:layout_marginRight="10dp"
android:visibility="gone"
android:layout_marginLeft="15dp" />
android:visibility="gone" />
</LinearLayout>


<TextView
android:id="@+id/fileDate"
android:layout_width="match_parent"
Expand All @@ -96,7 +95,6 @@
</LinearLayout>
</LinearLayout>


</com.balysv.materialripple.MaterialRippleLayout>

</LinearLayout>
Expand Down

0 comments on commit 46d4536

Please sign in to comment.