Fix text scale, remove useless ids

This commit is contained in:
Alexey Pelykh 2014-12-18 16:22:17 +02:00
parent 87401b3f62
commit 8484c9dbf5
6 changed files with 3 additions and 11 deletions

0
OsmAnd/assets/bundled_assets.xml Executable file → Normal file
View file

View file

@ -217,7 +217,6 @@
</LinearLayout>
<TextView
android:id="@id/TextView"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"

View file

@ -47,11 +47,9 @@
</TableRow>
<TableRow
android:id="@id/TableRow"
android:layout_marginLeft="5dp">
<TextView
android:id="@id/TextView"
android:text="@string/search_address_city" />
<Button
@ -71,11 +69,9 @@
</TableRow>
<TableRow
android:id="@id/TableRow"
android:layout_marginLeft="5dp">
<TextView
android:id="@id/TextView"
android:text="@string/search_address_street" />
<Button
@ -95,7 +91,6 @@
</TableRow>
<TableRow
android:id="@id/TableRow"
android:layout_marginLeft="5dp">
<TextView

View file

@ -34,7 +34,6 @@
<TableRow android:layout_width="fill_parent">
<TextView
android:id="@id/TextView"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:text="@string/gpx_tags_txt" />
@ -51,7 +50,6 @@
<TableRow android:layout_width="fill_parent">
<TextView
android:id="@id/TextView"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:text="@string/gpx_visibility_txt" />

View file

@ -200,7 +200,7 @@ public class MapRendererContext {
}
// Create new OBF map symbols provider
obfMapSymbolsProvider = new MapObjectsSymbolsProvider(mapPrimitivesProvider, getReferenceTileSize(),
app.getSettings().TEXT_SCALE.get() / Math.max(1, density) );
app.getSettings().TEXT_SCALE.get());
// If there's bound view, add new provider
if (mapRendererView != null) {
mapRendererView.addSymbolsProvider(obfMapSymbolsProvider);

View file

@ -141,7 +141,7 @@ public class MapActivityActions implements DialogProvider {
builder.setTitle(R.string.add_waypoint_dialog_title);
FrameLayout parent = new FrameLayout(mapActivity);
final EditText editText = new EditText(mapActivity);
editText.setId(R.id.TextView);
editText.setId(android.R.id.edit);
parent.setPadding(15, 0, 15, 0);
parent.addView(editText);
builder.setView(parent);
@ -540,7 +540,7 @@ public class MapActivityActions implements DialogProvider {
args.getDouble(KEY_LATITUDE), args.getDouble(KEY_LONGITUDE),args.getString(KEY_NAME));
break;
case DIALOG_ADD_WAYPOINT:
EditText v = (EditText) dialog.getWindow().findViewById(R.id.TextView);
EditText v = (EditText) dialog.getWindow().findViewById(android.R.id.edit);
v.setPadding(5, 0, 5, 0);
if(args.getString(KEY_NAME) != null) {
v.setText(args.getString(KEY_NAME));