Compare commits
No commits in common. "9e0fdf30ec139c97cb83d48d3f1cdb2a91d4c6f6" and "41c14362a811a3fad6f3cd80ca45501341371876" have entirely different histories.
9e0fdf30ec
...
41c14362a8
@ -21,7 +21,7 @@ class ImageActivity : AppCompatActivity() {
|
||||
supportActionBar?.setDisplayShowTitleEnabled(false)
|
||||
supportActionBar?.setDisplayHomeAsUpEnabled(true)
|
||||
|
||||
allImages = intent.getStringArrayListExtra("allImages") as ArrayList<String>
|
||||
allImages = intent.getStringArrayListExtra("allImages")
|
||||
position = intent.getIntExtra("position", 0)
|
||||
|
||||
pager.adapter = ScreenSlidePagerAdapter(supportFragmentManager)
|
||||
|
@ -141,14 +141,7 @@ data class Item(
|
||||
var allImages = ArrayList<String>()
|
||||
|
||||
for ( image in Jsoup.parse(content).getElementsByTag("img")) {
|
||||
val url = image.attr("src")
|
||||
if (url.toLowerCase().contains(".jpg") ||
|
||||
url.toLowerCase().contains(".jpeg") ||
|
||||
url.toLowerCase().contains(".png") ||
|
||||
url.toLowerCase().contains(".webp"))
|
||||
{
|
||||
allImages.add(url)
|
||||
}
|
||||
allImages.add(image.attr("src"))
|
||||
}
|
||||
return allImages
|
||||
}
|
||||
|
@ -17,7 +17,7 @@ class ImageFragment : Fragment() {
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
|
||||
imageUrl = requireArguments().getString("imageUrl")!!
|
||||
imageUrl = arguments!!.getString("imageUrl")!!
|
||||
}
|
||||
|
||||
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
|
||||
|
Loading…
Reference in New Issue
Block a user