Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: tuxmobil/yaxim
...
head fork: tuxmobil/yaxim
Checking mergeability… Don't worry, you can still create the pull request.
  • 4 commits
  • 22 files changed
  • 0 commit comments
  • 2 contributors
View
4 res/layout/chatrow.xml
@@ -9,13 +9,13 @@
<TextView android:id="@+id/chat_date" android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:textSize="14sp" android:textStyle="bold" android:textColor="#88f"
+ android:textSize="11sp" android:textStyle="bold" android:textColor="#88f"
android:ellipsize="end" android:paddingRight="6dp"/>
<TextView android:id="@+id/chat_from" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_weight="1"
android:singleLine="true"
- android:textSize="14sp" android:textColor="#88f"
+ android:textSize="11sp" android:textColor="#88f"
android:ellipsize="end" android:text="@string/chat_from_me" />
<ImageView
View
33 res/layout/mainprefs.xml
@@ -1,6 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <PreferenceCategory android:title="@string/account_settings_title">
+ <PreferenceScreen
+ android:title="@string/Menu_AccSettings"
+ android:summary="">
+
+ <intent android:action="android.intent.action.MAIN"
+ android:targetPackage="org.yaxim.androidclient"
+ android:targetClass="org.yaxim.androidclient.preferences.AccountPrefs" />
+ </PreferenceScreen>
+ </PreferenceCategory>
+
<PreferenceCategory android:title="@string/preftitle_notify">
<CheckBoxPreference
android:id="@+id/led"
@@ -50,13 +62,23 @@
android:defaultValue="true"
/>
</PreferenceCategory>
- <PreferenceCategory android:title="@string/preftitle_ui">
+ <PreferenceCategory android:title="@string/preftitle_app">
<ListPreference android:title="@string/pref_theme"
android:entryValues="@array/pref_theme_values"
android:entries="@array/pref_theme_entries"
android:defaultValue="dark"
android:key="theme">
</ListPreference>
+ <ListPreference
+ android:id="@+id/setSizeChat"
+ android:key="setSizeChat"
+ android:title="@string/FontChat_title"
+ android:summary="@string/FontChat_summ"
+ android:entries="@array/fontSizesChat"
+ android:entryValues="@array/fontSizesChatCodes"
+ android:dialogTitle="@string/FontChat_dialog"
+ android:defaultValue="18"
+ />
</PreferenceCategory>
<PreferenceCategory android:title="@string/preftitle_debug">
<CheckBoxPreference
@@ -77,15 +99,6 @@
</PreferenceCategory>
<!--<PreferenceCategory android:title="@string/preftitle_app">
<ListPreference
- android:id="@+id/setSizeChat"
- android:key="setSizeChat"
- android:title="@string/FontChat_title"
- android:summary="@string/FontChat_summ"
- android:entries="@array/fontSizesChat"
- android:entryValues="@array/fontSizesChatCodes"
- android:dialogTitle="@string/FontChat_dialog"
- />
- <ListPreference
android:id="@+id/setSizeClist"
android:key="setSizeClist"
android:title="@string/FontRost_title"
View
29 res/layout/statusview.xml
@@ -1,5 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ >
+<LinearLayout
android:id="@+id/statusLayout"
android:orientation="vertical"
android:layout_width="fill_parent"
@@ -21,7 +25,28 @@
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:hint="@string/setStatusmsgHint"
+ android:layout_marginBottom="15dp"
android:singleLine="true"
/>
+ <LinearLayout
+ android:orientation="horizontal"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ >
+ <TextView
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:text="@string/account_prio_title"
+ android:textSize="20sp"
+ android:padding="10sp"
+ android:layout_weight="1"
+ />
+ <EditText android:id="@+id/statusview_prio"
+ android:layout_height="wrap_content"
+ android:layout_width="60sp"
+ android:numeric="integer|signed"
+ android:singleLine="true"
+ />
+ </LinearLayout>
</LinearLayout>
-
+</ScrollView>
View
4 res/menu/roster_options.xml
@@ -23,10 +23,6 @@
android:alphabeticShortcut="p"
android:icon="@android:drawable/ic_menu_preferences" />
- <item android:id="@+id/menu_acc_set" android:title="@string/Menu_AccSettings"
- android:alphabeticShortcut="e"
- android:icon="@android:drawable/ic_menu_manage" />
-
<item android:id="@+id/menu_about" android:title="@string/Menu_about"
android:alphabeticShortcut="y"
android:icon="@drawable/about" />
View
14 res/values-de/strings.xml
@@ -60,11 +60,11 @@
<string name="reportcrash_summ">Anonymen Absturzbericht sn die Entwickler senden</string>
<!-- Appearence Strings -->
+ <string name="preftitle_app">Anzeige</string>
+ <string name="FontChat_title">Chat Schriftgröße</string>
+ <string name="FontChat_summ">Schriftgröße für Chat setzen</string>
+ <string name="FontChat_dialog">Chat Schriftgröße</string>
<!--
- <string name="preftitle_app">Appearance</string>
- <string name="FontChat_title">Chat font size</string>
- <string name="FontChat_summ">Set chat font size</string>
- <string name="FontChat_dialog">Chat font fize</string>
<string name="FontRost_title">Roster font size</string>
<string name="FontRost_summ">Set roster font size</string>
<string name="FontRost_dialog">Roster font fize</string>
@@ -75,7 +75,11 @@
<item>Dunkel</item>
<item>Hell</item>
</string-array>
- <string name="preftitle_ui">Anzeige</string>
+ <string-array name="fontSizesChat">
+ <item>klein</item>
+ <item>mittel</item>
+ <item>groß</item>
+ </string-array>
<!-- Mainmenu -->
<string name="Menu_addFriend">Kontakt hinzufügen</string>
View
8 res/values-el/strings.xml
@@ -60,11 +60,11 @@
<string name="reportcrash_summ">Send anonymous crash reports to developer</string>
<!-- Appearence Strings -->
- <!--
<string name="preftitle_app">Appearance</string>
<string name="FontChat_title">Chat font size</string>
<string name="FontChat_summ">Set chat font size</string>
<string name="FontChat_dialog">Chat font fize</string>
+ <!--
<string name="FontRost_title">Roster font size</string>
<string name="FontRost_summ">Set roster font size</string>
<string name="FontRost_dialog">Roster font fize</string>
@@ -75,7 +75,11 @@
<item>Dark</item>
<item>Light</item>
</string-array>
- <string name="preftitle_ui">Anzeige</string>
+ <string-array name="fontSizesChat">
+ <item>small</item>
+ <item>normal</item>
+ <item>large</item>
+ </string-array>
<!-- Mainmenu -->
<string name="Menu_addFriend">Προσθήκη επαφής</string>
View
8 res/values-es/strings.xml
@@ -60,11 +60,11 @@
<string name="reportcrash_summ">Enviar reportes anónimos de errores críticos a los desarrolladores</string>
<!-- Appearence Strings -->
- <!--
<string name="preftitle_app">Appearance</string>
<string name="FontChat_title">Chat font size</string>
<string name="FontChat_summ">Set chat font size</string>
<string name="FontChat_dialog">Chat font fize</string>
+ <!--
<string name="FontRost_title">Roster font size</string>
<string name="FontRost_summ">Set roster font size</string>
<string name="FontRost_dialog">Roster font fize</string>
@@ -75,7 +75,11 @@
<item>Dark</item>
<item>Light</item>
</string-array>
- <string name="preftitle_ui">Anzeige</string>
+ <string-array name="fontSizesChat">
+ <item>small</item>
+ <item>normal</item>
+ <item>large</item>
+ </string-array>
<!-- Mainmenu -->
<string name="Menu_addFriend">Añadir Contacto</string>
View
8 res/values-fr/strings.xml
@@ -60,11 +60,11 @@
<string name="reportcrash_summ">Send anonymous crash reports to developer</string>
<!-- Appearence Strings -->
- <!--
<string name="preftitle_app">Appearance</string>
<string name="FontChat_title">Chat font size</string>
<string name="FontChat_summ">Set chat font size</string>
<string name="FontChat_dialog">Chat font fize</string>
+ <!--
<string name="FontRost_title">Roster font size</string>
<string name="FontRost_summ">Set roster font size</string>
<string name="FontRost_dialog">Roster font fize</string>
@@ -75,7 +75,11 @@
<item>Dark</item>
<item>Light</item>
</string-array>
- <string name="preftitle_ui">Anzeige</string>
+ <string-array name="fontSizesChat">
+ <item>small</item>
+ <item>normal</item>
+ <item>large</item>
+ </string-array>
<!-- Mainmenu -->
<string name="Menu_addFriend">Ajouter un contact</string>
View
8 res/values-it/strings.xml
@@ -60,11 +60,11 @@
<string name="reportcrash_summ">Send anonymous crash reports to developer</string>
<!-- Appearence Strings -->
- <!--
<string name="preftitle_app">Appearance</string>
<string name="FontChat_title">Chat font size</string>
<string name="FontChat_summ">Set chat font size</string>
<string name="FontChat_dialog">Chat font fize</string>
+ <!--
<string name="FontRost_title">Roster font size</string>
<string name="FontRost_summ">Set roster font size</string>
<string name="FontRost_dialog">Roster font fize</string>
@@ -75,7 +75,11 @@
<item>Dark</item>
<item>Light</item>
</string-array>
- <string name="preftitle_ui">Anzeige</string>
+ <string-array name="fontSizesChat">
+ <item>small</item>
+ <item>normal</item>
+ <item>large</item>
+ </string-array>
<!-- Mainmenu -->
<string name="Menu_addFriend">Aggiungi contatto</string>
View
8 res/values-lt/strings.xml
@@ -60,11 +60,11 @@
<string name="reportcrash_summ">Send anonymous crash reports to developer</string>
<!-- Appearence Strings -->
- <!--
<string name="preftitle_app">Appearance</string>
<string name="FontChat_title">Chat font size</string>
<string name="FontChat_summ">Set chat font size</string>
<string name="FontChat_dialog">Chat font fize</string>
+ <!--
<string name="FontRost_title">Roster font size</string>
<string name="FontRost_summ">Set roster font size</string>
<string name="FontRost_dialog">Roster font fize</string>
@@ -75,7 +75,11 @@
<item>Dark</item>
<item>Light</item>
</string-array>
- <string name="preftitle_ui">Anzeige</string>
+ <string-array name="fontSizesChat">
+ <item>small</item>
+ <item>normal</item>
+ <item>large</item>
+ </string-array>
<!-- Mainmenu -->
<string name="Menu_addFriend">Pridėti kontaktą</string>
View
8 res/values-pl/strings.xml
@@ -60,11 +60,11 @@
<string name="reportcrash_summ">Wysyłanie anonimowych zgłoszeń awarii do programisty</string>
<!-- Appearence Strings -->
- <!--
<string name="preftitle_app">Appearance</string>
<string name="FontChat_title">Chat font size</string>
<string name="FontChat_summ">Set chat font size</string>
<string name="FontChat_dialog">Chat font fize</string>
+ <!--
<string name="FontRost_title">Roster font size</string>
<string name="FontRost_summ">Set roster font size</string>
<string name="FontRost_dialog">Roster font fize</string>
@@ -75,7 +75,11 @@
<item>Dark</item>
<item>Light</item>
</string-array>
- <string name="preftitle_ui">Anzeige</string>
+ <string-array name="fontSizesChat">
+ <item>small</item>
+ <item>normal</item>
+ <item>large</item>
+ </string-array>
<!-- Mainmenu -->
<string name="Menu_addFriend">Dodaj kontakt</string>
View
8 res/values-ru/strings.xml
@@ -60,11 +60,11 @@
<string name="reportcrash_summ">Посылать анонимные отчёты о крахах разработчику</string>
<!-- Appearence Strings -->
- <!--
<string name="preftitle_app">Appearance</string>
<string name="FontChat_title">Chat font size</string>
<string name="FontChat_summ">Set chat font size</string>
<string name="FontChat_dialog">Chat font fize</string>
+ <!--
<string name="FontRost_title">Roster font size</string>
<string name="FontRost_summ">Set roster font size</string>
<string name="FontRost_dialog">Roster font fize</string>
@@ -75,7 +75,11 @@
<item>Dark</item>
<item>Light</item>
</string-array>
- <string name="preftitle_ui">Anzeige</string>
+ <string-array name="fontSizesChat">
+ <item>small</item>
+ <item>normal</item>
+ <item>large</item>
+ </string-array>
<!-- Mainmenu -->
<string name="Menu_addFriend">Добавить контакт</string>
View
8 res/values-sv/strings.xml
@@ -60,11 +60,11 @@
<string name="reportcrash_summ">Skicka anonyma kraschrapporter till utvecklare</string>
<!-- Appearence Strings -->
- <!--
<string name="preftitle_app">Appearance</string>
<string name="FontChat_title">Chat font size</string>
<string name="FontChat_summ">Set chat font size</string>
<string name="FontChat_dialog">Chat font fize</string>
+ <!--
<string name="FontRost_title">Roster font size</string>
<string name="FontRost_summ">Set roster font size</string>
<string name="FontRost_dialog">Roster font fize</string>
@@ -75,7 +75,11 @@
<item>Dark</item>
<item>Light</item>
</string-array>
- <string name="preftitle_ui">Anzeige</string>
+ <string-array name="fontSizesChat">
+ <item>small</item>
+ <item>normal</item>
+ <item>large</item>
+ </string-array>
<!-- Mainmenu -->
<string name="Menu_addFriend">Lägg till kontakt</string>
View
8 res/values-tr/strings.xml
@@ -60,11 +60,11 @@
<string name="reportcrash_summ">Send anonymous crash reports to developer</string>
<!-- Appearence Strings -->
- <!--
<string name="preftitle_app">Appearance</string>
<string name="FontChat_title">Chat font size</string>
<string name="FontChat_summ">Set chat font size</string>
<string name="FontChat_dialog">Chat font fize</string>
+ <!--
<string name="FontRost_title">Roster font size</string>
<string name="FontRost_summ">Set roster font size</string>
<string name="FontRost_dialog">Roster font fize</string>
@@ -75,7 +75,11 @@
<item>Dark</item>
<item>Light</item>
</string-array>
- <string name="preftitle_ui">Anzeige</string>
+ <string-array name="fontSizesChat">
+ <item>small</item>
+ <item>normal</item>
+ <item>large</item>
+ </string-array>
<!-- Mainmenu -->
<string name="Menu_addFriend">Add Contact</string>
View
18 res/values/prefArrays.xml
@@ -1,20 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
- <string-array name="fontSizesChat">
- <item>6px</item>
- <item>8px</item>
- <item>10px</item>
- <item>12px</item>
- <item>14px</item>
- </string-array>
<string-array name="fontSizesChatCodes">
- <item>6</item>
- <item>8</item>
- <item>10</item>
- <item>12</item>
- <item>14</item>
+ <item>16</item>
+ <item>18</item>
+ <item>20</item>
</string-array>
+ <!--
<string-array name="fontSizesClist">
<item>6px</item>
<item>8px</item>
@@ -28,7 +20,7 @@
<item>10</item>
<item>12</item>
<item>14</item>
- </string-array>
+ </string-array> -->
<string-array name="pref_theme_values">
<item>dark</item>
<item>light</item>
View
7 res/values/strings.xml
@@ -60,11 +60,11 @@
<string name="reportcrash_summ">Send anonymous crash reports to developer</string>
<!-- Appearence Strings -->
- <!--
<string name="preftitle_app">Appearance</string>
<string name="FontChat_title">Chat font size</string>
<string name="FontChat_summ">Set chat font size</string>
<string name="FontChat_dialog">Chat font fize</string>
+ <!--
<string name="FontRost_title">Roster font size</string>
<string name="FontRost_summ">Set roster font size</string>
<string name="FontRost_dialog">Roster font fize</string>
@@ -76,6 +76,11 @@
<item>Light</item>
</string-array>
<string name="preftitle_ui">Appearance</string>
+ <string-array name="fontSizesChat">
+ <item>small</item>
+ <item>normal</item>
+ <item>large</item>
+ </string-array>
<!-- Mainmenu -->
<string name="Menu_addFriend">Add Contact</string>
View
12 src/org/yaxim/androidclient/MainWindow.java
@@ -11,7 +11,6 @@
import org.yaxim.androidclient.dialogs.ChangeStatusDialog;
import org.yaxim.androidclient.dialogs.FirstStartDialog;
import org.yaxim.androidclient.dialogs.GroupNameView;
-import org.yaxim.androidclient.preferences.AccountPrefs;
import org.yaxim.androidclient.preferences.MainPrefs;
import org.yaxim.androidclient.service.XMPPService;
import org.yaxim.androidclient.util.AdapterConstants;
@@ -549,6 +548,10 @@ public String getStatusMessage() {
return mStatusMessage;
}
+ public int getAccountPriority() {
+ return mConfig.priority;
+ }
+
public static String getStatusTitle(Context context, String status, String statusMessage) {
status = context.getString(StatusMode.fromString(status).getTextId());
@@ -559,7 +562,7 @@ public static String getStatusTitle(Context context, String status, String statu
return status;
}
- public void setAndSaveStatus(StatusMode statusMode, String message) {
+ public void setAndSaveStatus(StatusMode statusMode, String message, int priority) {
setStatus(statusMode, message);
@@ -569,6 +572,7 @@ public void setAndSaveStatus(StatusMode statusMode, String message) {
if (statusMode != StatusMode.offline)
prefedit.putString(PreferenceConstants.STATUS_MODE, statusMode.name());
prefedit.putString(PreferenceConstants.STATUS_MESSAGE, message);
+ prefedit.putString("account_prio", "" + priority);
prefedit.commit();
// check if we are connected and want to go offline
@@ -654,10 +658,6 @@ private boolean applyMainMenuChoice(com.actionbarsherlock.view.MenuItem item) {
startActivity(new Intent(this, MainPrefs.class));
return true;
- case R.id.menu_acc_set:
- startActivity(new Intent(this, AccountPrefs.class));
- return true;
-
case R.id.menu_about:
aboutDialog();
return true;
View
15 src/org/yaxim/androidclient/chat/ChatWindow.java
@@ -21,6 +21,7 @@
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
+import android.content.SharedPreferences;
import android.database.Cursor;
import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.TransitionDrawable;
@@ -72,16 +73,21 @@
private Intent mServiceIntent;
private ServiceConnection mServiceConnection;
private XMPPChatServiceAdapter mServiceAdapter;
+ private int mChatFontSize;
+ private SharedPreferences prefs;
@Override
public void onCreate(Bundle savedInstanceState) {
- String theme = PreferenceManager.getDefaultSharedPreferences(this).getString(PreferenceConstants.THEME, "dark");
+ prefs = PreferenceManager.getDefaultSharedPreferences(this);
+ String theme = prefs.getString(PreferenceConstants.THEME, "dark");
if (theme.equals("light")) {
setTheme(R.style.YaximLightTheme);
} else {
setTheme(R.style.YaximDarkTheme);
}
super.onCreate(savedInstanceState);
+
+ mChatFontSize = Integer.valueOf(prefs.getString("setSizeChat", "18"));
requestWindowFeature(Window.FEATURE_ACTION_BAR);
setContentView(R.layout.mainchat);
@@ -285,7 +291,7 @@ public View getView(int position, View convertView, ViewGroup parent) {
if (row == null) {
LayoutInflater inflater = getLayoutInflater();
row = inflater.inflate(R.layout.chatrow, null);
- wrapper = new ChatItemWrapper(row);
+ wrapper = new ChatItemWrapper(row, ChatWindow.this);
row.setTag(wrapper);
} else {
wrapper = (ChatItemWrapper) row.getTag();
@@ -317,9 +323,11 @@ private String getDateString(long milliSeconds) {
private ImageView mIconView = null;
private final View mRowView;
+ private ChatWindow chatWindow;
- ChatItemWrapper(View row) {
+ ChatItemWrapper(View row, ChatWindow chatWindow) {
this.mRowView = row;
+ this.chatWindow = chatWindow;
}
void populateFrom(String date, boolean from_me, String from, String message,
@@ -369,6 +377,7 @@ void populateFrom(String date, boolean from_me, String from, String message,
break;
}
getMessageView().setText(message);
+ getMessageView().setTextSize(TypedValue.COMPLEX_UNIT_SP, chatWindow.mChatFontSize);
}
View
2  src/org/yaxim/androidclient/dialogs/AddRosterItemDialog.java
@@ -72,7 +72,7 @@ public void afterTextChanged(Editable s) {
try {
XMPPHelper.verifyJabberID(s);
okButton.setEnabled(true);
- userInputField.setTextColor(Color.DKGRAY);
+ userInputField.setTextColor(XMPPHelper.getEditTextColor(mMainWindow));
} catch (YaximXMPPAdressMalformedException e) {
okButton.setEnabled(false);
userInputField.setTextColor(Color.RED);
View
9 src/org/yaxim/androidclient/dialogs/ChangeStatusDialog.java
@@ -9,6 +9,7 @@
import org.yaxim.androidclient.MainWindow;
import org.yaxim.androidclient.R;
import org.yaxim.androidclient.util.StatusMode;
+import org.yaxim.androidclient.util.XMPPHelper;
import android.app.AlertDialog;
import android.content.Context;
@@ -27,6 +28,8 @@
private final EditText mMessage;
+ private final EditText mPriority;
+
private final MainWindow mContext;
public ChangeStatusDialog(final MainWindow context) {
@@ -63,6 +66,9 @@ public int compare(StatusMode object1, StatusMode object2) {
mMessage = (EditText) group.findViewById(R.id.statusview_message);
mMessage.setText(context.getStatusMessage());
+ mPriority = (EditText) group.findViewById(R.id.statusview_prio);
+ mPriority.setText("" + context.getAccountPriority());
+
setTitle(R.string.statuspopup_name);
setView(group);
@@ -78,8 +84,9 @@ public int compare(StatusMode object1, StatusMode object2) {
public void onClick(DialogInterface dialog, int which) {
StatusMode status = (StatusMode) mStatus.getSelectedItem();
String message = mMessage.getText().toString();
+ int priority = XMPPHelper.tryToParseInt(mPriority.getText().toString(), 0);
- mContext.setAndSaveStatus(status, message);
+ mContext.setAndSaveStatus(status, message, priority);
}
}
View
9 src/org/yaxim/androidclient/preferences/AccountPrefs.java
@@ -42,14 +42,7 @@ public void onCreate(Bundle savedInstanceState) {
sharedPreference = PreferenceManager.getDefaultSharedPreferences(this);
TypedValue tv = new TypedValue();
- boolean found = getTheme().resolveAttribute(android.R.attr.editTextColor, tv, true);
- if (found) {
- // SDK 11+
- themedTextColor = getResources().getColor(tv.resourceId);
- } else {
- // SDK < 11
- themedTextColor = getResources().getColor(android.R.color.primary_text_light);
- }
+ themedTextColor = XMPPHelper.getEditTextColor(this);
this.prefAccountID = (EditTextPreference) findPreference(ACCOUNT_JABBERID);
this.prefAccountID.getEditText().addTextChangedListener(
View
14 src/org/yaxim/androidclient/util/XMPPHelper.java
@@ -5,7 +5,9 @@
import org.yaxim.androidclient.exceptions.YaximXMPPAdressMalformedException;
+import android.content.Context;
import android.text.Editable;
+import android.util.TypedValue;
public class XMPPHelper {
@@ -40,4 +42,16 @@ public static int tryToParseInt(String value, int defVal) {
}
return ret;
}
+
+ public static int getEditTextColor(Context ctx) {
+ TypedValue tv = new TypedValue();
+ boolean found = ctx.getTheme().resolveAttribute(android.R.attr.editTextColor, tv, true);
+ if (found) {
+ // SDK 11+
+ return ctx.getResources().getColor(tv.resourceId);
+ } else {
+ // SDK < 11
+ return ctx.getResources().getColor(android.R.color.primary_text_light);
+ }
+ }
}

No commit comments for this range

Something went wrong with that request. Please try again.