-
-
Notifications
You must be signed in to change notification settings - Fork 611
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
contents: Implemented Content Manager.
- Loading branch information
1 parent
a5e7095
commit f142d47
Showing
12 changed files
with
447 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
app/src/main/java/com/winlator/contentdialog/ContentUntrustedDialog.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package com.winlator.contentdialog; | ||
|
||
import android.content.Context; | ||
import android.widget.TextView; | ||
|
||
import androidx.recyclerview.widget.DividerItemDecoration; | ||
import androidx.recyclerview.widget.LinearLayoutManager; | ||
import androidx.recyclerview.widget.RecyclerView; | ||
|
||
import com.winlator.R; | ||
import com.winlator.contents.ContentProfile; | ||
|
||
import java.util.List; | ||
|
||
public class ContentUntrustedDialog extends ContentDialog { | ||
public ContentUntrustedDialog(Context context, List<ContentProfile.ContentFile> contentFiles) { | ||
super(context, R.layout.content_untrusted_dialog); | ||
setIcon(R.drawable.icon_info); | ||
setTitle(R.string.warning); | ||
|
||
RecyclerView recyclerView = findViewById(R.id.recyclerView); | ||
recyclerView.setAdapter(new ContentInfoDialog.ContentInfoFileAdapter(contentFiles)); | ||
recyclerView.setLayoutManager(new LinearLayoutManager(recyclerView.getContext())); | ||
recyclerView.addItemDecoration(new DividerItemDecoration(recyclerView.getContext(), DividerItemDecoration.VERTICAL)); | ||
((TextView) (findViewById(R.id.BTConfirm))).setText(R.string._continue); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.