From f4e4c9c9af8fdda10291e93680b0a3290c2339e4 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Tue, 11 Sep 2012 17:10:10 +0200 Subject: [PATCH] Small fixes --- res/layout-xlarge-land/main.xml | 6 ++++++ res/values/strings.xml | 8 ++++---- src/org/linphone/LinphoneActivity.java | 19 ------------------- 3 files changed, 10 insertions(+), 23 deletions(-) diff --git a/res/layout-xlarge-land/main.xml b/res/layout-xlarge-land/main.xml index b3586abb6..322af7b4e 100644 --- a/res/layout-xlarge-land/main.xml +++ b/res/layout-xlarge-land/main.xml @@ -13,6 +13,7 @@ android:orientation="horizontal"> Verify %s Encrypted - Starting up... + Starting up… An error occurred while accepting call Error adding new call @@ -172,8 +172,8 @@ Describe problem here Error generating bug report Logs not found. - Reading logs, may takes time... - Send bug report with... + Reading logs, may takes time… + Send bug report with… About Audio Exit @@ -216,7 +216,7 @@ Stun server Enable ICE A STUN server must be configured to use ICE - Calibrating... + Calibrating… Calibrated [%s ms] failed Enter your username and password to connect to the service. diff --git a/src/org/linphone/LinphoneActivity.java b/src/org/linphone/LinphoneActivity.java index 503a08f7f..eb952a462 100644 --- a/src/org/linphone/LinphoneActivity.java +++ b/src/org/linphone/LinphoneActivity.java @@ -49,7 +49,6 @@ import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.database.Cursor; -import android.graphics.Typeface; import android.net.Uri; import android.os.Bundle; import android.os.Handler; @@ -160,27 +159,18 @@ public class LinphoneActivity extends FragmentActivity implements OnClickListene } private void initButtons() { -// Typeface typeface = Typeface.createFromAsset(getAssets(), "font_linphone.ttf"); - Typeface typeface = null; - history = (RelativeLayout) findViewById(R.id.history); history.setOnClickListener(this); - setMenuTypeface(history, typeface); contacts = (RelativeLayout) findViewById(R.id.contacts); contacts.setOnClickListener(this); - setMenuTypeface(contacts, typeface); dialer = (ImageView) findViewById(R.id.dialer); dialer.setOnClickListener(this); settings = (RelativeLayout) findViewById(R.id.settings); settings.setOnClickListener(this); - setMenuTypeface(settings, typeface); chat = (RelativeLayout) findViewById(R.id.chat); chat.setOnClickListener(this); - setMenuTypeface(chat, typeface); aboutChat = (RelativeLayout) findViewById(R.id.about_chat); - setMenuTypeface(aboutChat, typeface); aboutSettings = (RelativeLayout) findViewById(R.id.about_settings); - setMenuTypeface(aboutSettings, typeface); if (getResources().getBoolean(R.bool.replace_chat_by_about)) { chat.setVisibility(View.GONE); @@ -913,15 +903,6 @@ public class LinphoneActivity extends FragmentActivity implements OnClickListene stopService(new Intent(ACTION_MAIN).setClass(this, LinphoneService.class)); } - private void setMenuTypeface(RelativeLayout menu, Typeface typeface) { - if (typeface == null) { - return; - } - - TextView tv = (TextView) menu.findViewById(R.id.text); - tv.setTypeface(typeface); - } - @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(resultCode, requestCode, data);