diff --git a/TMessagesProj/build.gradle b/TMessagesProj/build.gradle index 7b2d071ee..87d555a03 100644 --- a/TMessagesProj/build.gradle +++ b/TMessagesProj/build.gradle @@ -83,7 +83,7 @@ android { defaultConfig { minSdkVersion 8 targetSdkVersion 19 - versionCode 278 + versionCode 279 versionName "1.6.0" } } diff --git a/TMessagesProj/src/main/java/org/telegram/messenger/FileLoader.java b/TMessagesProj/src/main/java/org/telegram/messenger/FileLoader.java index 9019f118d..fe0659d5e 100644 --- a/TMessagesProj/src/main/java/org/telegram/messenger/FileLoader.java +++ b/TMessagesProj/src/main/java/org/telegram/messenger/FileLoader.java @@ -946,8 +946,14 @@ public class FileLoader { } } }; + + boolean isLocalFile = false; + if (httpUrl != null && !httpUrl.startsWith("http")) { + isLocalFile = true; + } + img.loadOperation = loadOperation; - if (runningOperation.size() < maxConcurentLoadingOpertaionsCount) { + if (runningOperation.size() < maxConcurentLoadingOpertaionsCount || isLocalFile) { loadOperation.start(); runningOperation.add(loadOperation); } else { diff --git a/TMessagesProj/src/main/java/org/telegram/ui/ContactsActivity.java b/TMessagesProj/src/main/java/org/telegram/ui/ContactsActivity.java index abb1a5f0b..9e23803d2 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/ContactsActivity.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/ContactsActivity.java @@ -24,6 +24,7 @@ import android.view.inputmethod.EditorInfo; import android.widget.AbsListView; import android.widget.AdapterView; import android.widget.EditText; +import android.widget.FrameLayout; import android.widget.TextView; import org.telegram.android.AndroidUtilities; @@ -350,6 +351,9 @@ public class ContactsActivity extends BaseFragment implements NotificationCenter builder.setTitle(LocaleController.getString("AppName", R.string.AppName)); builder.setMessage(LocaleController.formatStringSimple(selectAlertString, Utilities.formatName(user.first_name, user.last_name))); final EditText editText = new EditText(getParentActivity()); + if (android.os.Build.VERSION.SDK_INT < 11) { + editText.setBackgroundResource(android.R.drawable.editbox_background_normal); + } editText.setTextSize(18); editText.setText("50"); editText.setGravity(Gravity.CENTER); @@ -366,9 +370,13 @@ public class ContactsActivity extends BaseFragment implements NotificationCenter showAlertDialog(builder); ViewGroup.MarginLayoutParams layoutParams = (ViewGroup.MarginLayoutParams)editText.getLayoutParams(); if (layoutParams != null) { + if (layoutParams instanceof FrameLayout.LayoutParams) { + ((FrameLayout.LayoutParams)layoutParams).gravity = Gravity.CENTER_HORIZONTAL; + } layoutParams.rightMargin = layoutParams.leftMargin = AndroidUtilities.dp(10); editText.setLayoutParams(layoutParams); } + editText.setSelection(editText.getText().length()); } else { if (delegate != null) { delegate.didSelectContact(user, param);