AppDetails: don't remove last character
When fixing the trailing newline issue, I overlooked the fact that subsequence's second index is exclusive, not inclusive, so it's i<=len not i<len.
This commit is contained in:
parent
7cfc2ea004
commit
b204377a4e
@ -1127,7 +1127,7 @@ public class AppDetails extends AppCompatActivity implements ProgressListener, A
|
|||||||
if (i == s.length()-1) {
|
if (i == s.length()-1) {
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
return s.subSequence(0, i);
|
return s.subSequence(0, i+1);
|
||||||
}
|
}
|
||||||
|
|
||||||
private ViewGroup layout_links_content;
|
private ViewGroup layout_links_content;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user