1. Fix some bugs

2. Implement discussable part (currently make invisible)

git-svn-id: https://osmand.googlecode.com/svn/trunk@122 e29c36b1-1cfa-d876-8d93-3434fc2bb7b8
This commit is contained in:
Victor Shcherb 2010-06-02 19:36:52 +00:00
parent c1d66edd20
commit fb1eab4c55
4 changed files with 13 additions and 27 deletions

View file

@ -331,7 +331,7 @@ public class DataExtraction {
private void convertEnglishName(MapObject o){
String name = o.getName();
if(name != null && o.getEnName() == null){
if(name != null && (o.getEnName() == null || o.getEnName().isEmpty())){
o.setEnName(Junidecode.unidecode(name));
// o.setEnName(transliterator.transliterate(name));
}

View file

@ -1,9 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:orientation="vertical"
android:layout_height="fill_parent" android:background="@drawable/background"
android:gravity="center">
android:layout_height="fill_parent" android:background="@drawable/background">
<TableLayout android:layout_gravity="center"
android:layout_width="wrap_content"
@ -49,21 +48,13 @@
android:layout_height="70dip"
android:drawableLeft="@drawable/settings"/>
</TableRow>
</TableLayout><!--
</TableLayout>
<FrameLayout android:id="@+id/FrameLayout01"
android:layout_height="fill_parent" android:layout_width="fill_parent">
<Button android:layout_width="wrap_content"
<FrameLayout android:id="@+id/FrameLayout01" android:layout_gravity="bottom|left"
android:layout_height="wrap_content" android:layout_width="fill_parent">
<Button android:layout_width="wrap_content"
android:layout_marginLeft="5dp" android:layout_marginBottom ="5dp"
android:layout_height="wrap_content" android:layout_gravity="bottom|left"
android:id="@+id/ExitButton" android:background="@drawable/exit"></Button>
</FrameLayout>
--></LinearLayout>
</FrameLayout>

View file

@ -133,29 +133,24 @@ public class MainMenuActivity extends Activity {
}
});
/*
exitButton = (Button) findViewById(R.id.ExitButton);
exitButton.setVisibility(View.INVISIBLE);
exitButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
finishApplication();
}
}); */
});
startApplication();
}
protected void finishApplication(){
mNotificationManager.cancel(APP_NOTIFICATION_ID);
boolean force = false;
ResourceManager.getResourceManager().close();
applicationAlreadyStarted = false;
if (force) {
int pid = android.os.Process.myPid();
android.os.Process.killProcess(pid);
} else {
MainMenuActivity.this.finish();
}
MainMenuActivity.this.finish();
}
@Override

View file

@ -93,7 +93,7 @@ public abstract class SearchByNameAbstractActivity<T> extends ListActivity {
@Override
public void run() {
List<T> loadedObjects = getObjects(filter);
if(!handlerToLoop.hasMessages(1)){
if(handlerToLoop != null && !handlerToLoop.hasMessages(1)){
updateUIList(loadedObjects);
}
}