mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Change to ListView in layout file to solve crash
This commit is contained in:
parent
55810cd050
commit
9836fb920e
2 changed files with 6 additions and 6 deletions
|
|
@ -34,7 +34,7 @@ public class NearbyPlaces {
|
|||
int counter = 0;
|
||||
|
||||
//while ((line = in.readLine()) != null) {
|
||||
while (in.readLine() != null && counter < 11) {
|
||||
while (in.readLine() != null && counter < 110) {
|
||||
|
||||
line = in.readLine();
|
||||
counter++;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical" android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
</LinearLayout>
|
||||
<ListView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@android:id/list"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
/>
|
||||
Loading…
Add table
Add a link
Reference in a new issue