Overflow 404

1

votes
1

answer
1.1k

views

Glide and recyclerview, too much memory

I use Glide to download images(~4Kb each) and a recyclerview with a gridlayout to display it. I store images url in an lru cache. In the onBindViewHolder() I get the image url and display it with Glide as a follow: Glide.with(mMainActivity).load(item.getPosterPath()).thumbnail(0.5f).into(holder.post...
Overflow 404
1

votes
2

answer
112

views

Do checked exceptions violate the open closed principle?

I have two checked exceptions: TestException1 and TestException2 and the following code: void p1() throws TestException1{ p2(); } void p2() throws TestException1 { p3(); } void p3() throws TestException1 {} Does the editing of the signature of p3 as follows violate the Open-Closed principle? void p...
Overflow 404