Skip to content

Commit fa720fb

Browse files
committed
states search removed
1 parent b94040f commit fa720fb

File tree

5 files changed

+11
-8
lines changed

5 files changed

+11
-8
lines changed

.idea/vcs.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
311 KB
Binary file not shown.

app/src/main/java/harshmathur/nic/soi/com/nakshe/MainActivity.java

+2-6
Original file line numberDiff line numberDiff line change
@@ -275,10 +275,9 @@ public void onSearchConfirmed(CharSequence charSequence) {
275275
double lati;
276276
double longi;
277277
Cell z;
278-
mainloop:
279278
for(int i=1; i<=row; i++){
280-
for(int j=9; j>5; j--){
281-
if((!tehsil && j==7) || (!district && j==8) || (!state && j==9)){
279+
for(int j=8; j>5; j--){
280+
if((!tehsil && j==7) || (!district && j==8)){
282281
continue ;
283282
}
284283
z = s.getCell(j,i); // keep column first then rows
@@ -291,9 +290,6 @@ public void onSearchConfirmed(CharSequence charSequence) {
291290
Latitude.add(lati);
292291
OSM.add(s.getCell(2,i).getContents());
293292
RecyclerViewHorizontalAdapter.notifyDataSetChanged();
294-
if(j==9){
295-
break mainloop;
296-
}
297293
}
298294
}
299295
}

app/src/main/res/layout/activity_main.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
<android.support.v7.widget.RecyclerView
5454
android:id="@+id/recyclerview1"
5555
android:layout_width="match_parent"
56-
android:layout_height="wrap_content"
56+
android:layout_height="0dp"
5757
android:minHeight="120dp"
5858
android:layout_gravity="bottom"
5959
android:layout_weight="1"

app/src/main/res/layout/horizontal_item.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
xmlns:android="http://schemas.android.com/apk/res/android"
44
android:id="@+id/cardview"
55
android:layout_width="280dp"
6-
android:layout_height="wrap_content"
6+
android:layout_height="150dp"
7+
android:maxHeight="250dp"
78
android:minHeight="100dp"
89
card_view:contentPadding="7dp"
910
card_view:cardCornerRadius="2dp"

0 commit comments

Comments
 (0)