Fix look and feel

This commit is contained in:
Victor Shcherb 2015-02-24 02:06:21 +01:00
parent 4a25f3d2f6
commit 5c66b17ab1
3 changed files with 7 additions and 10 deletions

View file

@ -134,11 +134,11 @@ public class FavoritesTreeFragment extends OsmandExpandableListFragment {
// final LatLon mapLocation = getMyApplication().getSettings().getLastKnownMapLocation();
favouritesAdapter.synchronizeGroups();
if(favouritesAdapter.getGroupCount() > 0 &&
"".equals(favouritesAdapter.getGroup(0).name)) {
getExpandableListView().expandGroup(0);
}
collapseTrees(5);
// if(favouritesAdapter.getGroupCount() > 0 &&
// "".equals(favouritesAdapter.getGroup(0).name)) {
// getExpandableListView().expandGroup(0);
// }
}
private void updateSelectionMode(ActionMode m) {

View file

@ -92,8 +92,8 @@ public class FavoriteImageDrawable extends Drawable {
int min = Math.min(bs.width(), bs.height());
int r = (int) (min / 2);
int rs = (int) (min / 2 - 1);
canvas.drawCircle(min / 2 , min / 2 + density, r, paintOuter);
canvas.drawCircle(min / 2 , min / 2 + density, rs, paintInnerCircle);
canvas.drawCircle(min / 2 , min / 2, r, paintOuter);
canvas.drawCircle(min / 2 , min / 2, rs, paintInnerCircle);
drawable.draw(canvas);
}

View file

@ -367,7 +367,6 @@ public class SearchHistoryHelper {
"INSERT INTO " + HISTORY_TABLE_NAME + " VALUES (?, ?, ?, ?, ?, ?)",
new Object[] { e.getSerializedName(), e.getLastAccessTime(),
e.getIntervals(), e.getIntervalsValues(), e.getLat(), e.getLon() }); //$NON-NLS-1$ //$NON-NLS-2$
System.out.println("Insert " + e.getSerializedName());
}
public List<HistoryEntry> getLegacyEntries(SQLiteConnection db){
@ -433,8 +432,6 @@ public class SearchHistoryHelper {
}
entries.add(e);
st.put(e.getSerializedName(), e);
System.out.println(e.getSerializedName() + " ("+name+") " + new Date(e.getLastAccessTime()) + " " +
e.getIntervalsValues() + " " + e.getIntervals());
} while (query.moveToNext());
if(reinsert) {
System.err.println("Reinsert all values");