Update to 2.8.1.6 (526):
- Added option in navigation menu to open new Themes for Plus Messenger app (https://play.google.com/store/apps/details?id=es.rafalense.themes) - "Delete chat" option inside chat is working again - Now image and video caption gets color properly - Bug showing replied/forwarded text when text input is transparent fixed - Other minor bug fixes
@ -88,7 +88,7 @@ android {
|
||||
applicationId "org.telegram.plus"
|
||||
minSdkVersion 8
|
||||
targetSdkVersion 22
|
||||
versionCode 524
|
||||
versionName "2.8.1.4"
|
||||
versionCode 526
|
||||
versionName "2.8.1.6"
|
||||
}
|
||||
}
|
||||
|
@ -51,7 +51,6 @@
|
||||
android:authorities="org.telegram.plus.beta.android.provider.content"
|
||||
android:name="org.telegram.android.ModuleContentProvider"
|
||||
android:label="Plus beta"
|
||||
tools:replace="label"
|
||||
android:exported="true"
|
||||
android:permission="org.telegram.plus.beta.android.provider.ACCESS" />
|
||||
|
||||
|
@ -56,8 +56,8 @@ public class MessageObject {
|
||||
public ArrayList<TLRPC.PhotoSize> photoThumbs;
|
||||
|
||||
public static TextPaint textPaint;
|
||||
private static TextPaint textPaintRight = new TextPaint(Paint.ANTI_ALIAS_FLAG);
|
||||
private static TextPaint textPaintLeft = new TextPaint(Paint.ANTI_ALIAS_FLAG);
|
||||
public static TextPaint textPaintRight = new TextPaint(Paint.ANTI_ALIAS_FLAG);
|
||||
public static TextPaint textPaintLeft = new TextPaint(Paint.ANTI_ALIAS_FLAG);
|
||||
public int lastLineWidth;
|
||||
public int textWidth;
|
||||
public int textHeight;
|
||||
|
@ -4,13 +4,13 @@ import android.app.Activity;
|
||||
import android.content.ContentProvider;
|
||||
import android.content.ContentValues;
|
||||
import android.content.SharedPreferences;
|
||||
import android.content.UriMatcher;
|
||||
import android.database.Cursor;
|
||||
import android.net.Uri;
|
||||
import android.os.Environment;
|
||||
import android.util.Log;
|
||||
|
||||
import org.telegram.messenger.ApplicationLoader;
|
||||
import org.telegram.messenger.BuildConfig;
|
||||
import org.telegram.messenger.Utilities;
|
||||
|
||||
import java.io.File;
|
||||
@ -19,16 +19,18 @@ public class ModuleContentProvider extends ContentProvider {
|
||||
private static final String TAG = "ModuleContentProvider";
|
||||
|
||||
private static final String AUTHORITY = "org.telegram.plus.android.provider.content";
|
||||
public static final Uri THEME_URI = Uri.parse("content://" + AUTHORITY + "/theme");
|
||||
public static final Uri GET_NAME = Uri.parse("content://" + AUTHORITY + "/name");
|
||||
public static final Uri SET_NAME = Uri.parse("content://" + AUTHORITY + "/newname");
|
||||
private static final String AUTHORITY_BETA = "org.telegram.plus.beta.android.provider.content";
|
||||
|
||||
private static final UriMatcher sUriMatcher;
|
||||
public static Uri THEME_URI = Uri.parse("content://" + AUTHORITY + "/theme");
|
||||
public static Uri GET_NAME = Uri.parse("content://" + AUTHORITY + "/name");
|
||||
public static Uri SET_NAME = Uri.parse("content://" + AUTHORITY + "/newname");
|
||||
|
||||
/*private static final UriMatcher sUriMatcher;
|
||||
static {
|
||||
sUriMatcher = new UriMatcher(UriMatcher.NO_MATCH);
|
||||
sUriMatcher.addURI(AUTHORITY, "theme", 1);
|
||||
sUriMatcher.addURI(AUTHORITY, "name", 2);
|
||||
}
|
||||
}*/
|
||||
|
||||
@Override
|
||||
public boolean onCreate() {
|
||||
@ -44,6 +46,7 @@ public class ModuleContentProvider extends ContentProvider {
|
||||
|
||||
@Override
|
||||
public String getType(Uri uri) {
|
||||
if(BuildConfig.DEBUG)GET_NAME = Uri.parse("content://" + AUTHORITY_BETA + "/name");
|
||||
if(uri.equals(GET_NAME)){
|
||||
SharedPreferences themePrefs = ApplicationLoader.applicationContext.getSharedPreferences("theme", Activity.MODE_PRIVATE);
|
||||
return themePrefs.getString("themeName","empty");
|
||||
@ -55,6 +58,7 @@ public class ModuleContentProvider extends ContentProvider {
|
||||
@Override
|
||||
public Uri insert(Uri uri, ContentValues values) {
|
||||
Log.d(TAG, "insert uri: " + uri.toString());
|
||||
if(BuildConfig.DEBUG)SET_NAME = Uri.parse("content://" + AUTHORITY_BETA + "/newname");
|
||||
if(uri.toString().contains(SET_NAME.toString())){
|
||||
String sName = uri.toString();
|
||||
sName = sName.substring(sName.lastIndexOf(":")+1, sName.length());
|
||||
@ -71,6 +75,7 @@ public class ModuleContentProvider extends ContentProvider {
|
||||
@Override
|
||||
public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) {
|
||||
//Log.d(TAG, "update uri: " + uri.toString());
|
||||
if(BuildConfig.DEBUG)THEME_URI = Uri.parse("content://" + AUTHORITY_BETA + "/theme");
|
||||
if(uri.toString().contains(THEME_URI.toString())){
|
||||
String theme = uri.toString();
|
||||
theme = theme.substring(theme.lastIndexOf(":")+1, theme.length());
|
||||
|
@ -10,14 +10,10 @@ package org.telegram.ui.Adapters;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.pm.PackageInfo;
|
||||
import android.graphics.PorterDuff;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.util.TypedValue;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.BaseAdapter;
|
||||
|
||||
import org.telegram.android.AndroidUtilities;
|
||||
import org.telegram.android.LocaleController;
|
||||
import org.telegram.android.MessagesController;
|
||||
import org.telegram.messenger.ApplicationLoader;
|
||||
@ -36,11 +32,14 @@ public class DrawerLayoutAdapter extends BaseAdapter {
|
||||
|
||||
private Context mContext;
|
||||
private int versionType = 4;
|
||||
private int versionRow = 10;
|
||||
private int themingRow = 7;
|
||||
private int communityRow = 9;
|
||||
private int versionRow = 11;
|
||||
private int contactsRow = 6;
|
||||
private int settingsRow = 9;
|
||||
private int themingRow = 8;
|
||||
private int communityRow = 10;
|
||||
private int themesRow = 7;
|
||||
|
||||
private int rowCount = 0;
|
||||
//private int rowCount = 0;
|
||||
|
||||
public DrawerLayoutAdapter(Context context) {
|
||||
mContext = context;
|
||||
@ -59,7 +58,7 @@ public class DrawerLayoutAdapter extends BaseAdapter {
|
||||
@Override
|
||||
public int getCount() {
|
||||
//return UserConfig.isClientActivated() ? 10 : 0;
|
||||
return UserConfig.isClientActivated() ? 11 : 0;
|
||||
return UserConfig.isClientActivated() ? 12 : 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -105,13 +104,15 @@ public class DrawerLayoutAdapter extends BaseAdapter {
|
||||
actionCell.setTextAndIcon(LocaleController.getString("NewSecretChat", R.string.NewSecretChat), R.drawable.menu_secret);
|
||||
} else if (i == 4) {
|
||||
actionCell.setTextAndIcon(LocaleController.getString("NewBroadcastList", R.string.NewBroadcastList), R.drawable.menu_broadcast);
|
||||
} else if (i == 6) {
|
||||
} else if (i == contactsRow) {
|
||||
actionCell.setTextAndIcon(LocaleController.getString("Contacts", R.string.Contacts), R.drawable.menu_contacts);
|
||||
}/* else if (i == 7) {
|
||||
actionCell.setTextAndIcon(LocaleController.getString("InviteFriends", R.string.InviteFriends), R.drawable.menu_invite);
|
||||
}*/ else if (i == themingRow) {
|
||||
}*/ else if (i == themesRow) {
|
||||
actionCell.setTextAndIcon(LocaleController.getString("Themes", R.string.Themes), R.drawable.menu_themes);
|
||||
} else if (i == themingRow) {
|
||||
actionCell.setTextAndIcon(LocaleController.getString("Theming", R.string.Theming), R.drawable.menu_theming);
|
||||
} else if (i == 8) {
|
||||
} else if (i == settingsRow) {
|
||||
actionCell.setTextAndIcon(LocaleController.getString("Settings", R.string.Settings), R.drawable.menu_settings);
|
||||
} else if (i == communityRow) {
|
||||
actionCell.setTextAndIcon(LocaleController.getString("Community", R.string.Community), R.drawable.menu_forum);
|
||||
|
@ -867,6 +867,11 @@ public class ChatMediaCell extends ChatBaseCell implements MediaController.FileD
|
||||
backgroundWidth += AndroidUtilities.dp(9);
|
||||
}
|
||||
if (messageObject.caption != null) {
|
||||
if(messageObject.isOut()){ //fix caption color bug
|
||||
MessageObject.textPaint = MessageObject.textPaintRight;
|
||||
}else{
|
||||
MessageObject.textPaint = MessageObject.textPaintLeft;
|
||||
}
|
||||
nameLayout = new StaticLayout(messageObject.caption, MessageObject.textPaint, photoWidth - AndroidUtilities.dp(10), Layout.Alignment.ALIGN_NORMAL, 1.0f, 0.0f, false);
|
||||
if (nameLayout.getLineCount() > 0) {
|
||||
captionHeight = nameLayout.getHeight();
|
||||
|
@ -369,15 +369,15 @@ public class DialogCell extends BaseCell {
|
||||
checkMessage = false;
|
||||
SharedPreferences themePrefs = ApplicationLoader.applicationContext.getSharedPreferences(AndroidUtilities.THEME_PREFS, AndroidUtilities.THEME_PREFS_MODE);
|
||||
int defColor = themePrefs.getInt("themeColor", AndroidUtilities.defColor);
|
||||
//String hexColor = String.format("#%08X", (0xFFFFFFFF & defColor));
|
||||
String hexMsgColor = String.format("#%08X", (0xFFFFFFFF & themePrefs.getInt("chatsMessageColor", 0xff808080)));
|
||||
String hexDarkColor = String.format("#%08X", (0xFFFFFFFF & themePrefs.getInt("chatsMemberColor", AndroidUtilities.getIntDarkerColor("themeColor", 0x15))));
|
||||
//String hexColor = String.format("#%08X", (0xffffffff & defColor));
|
||||
String hexMsgColor = String.format("#%08X", (0xffffffff & themePrefs.getInt("chatsMessageColor", 0xff808080)));
|
||||
String hexDarkColor = String.format("#%08X", (0xffffffff & themePrefs.getInt("chatsMemberColor", AndroidUtilities.getIntDarkerColor("themeColor", 0x15))));
|
||||
if (message.caption != null) {
|
||||
String mess = message.caption.toString();
|
||||
if (mess.length() > 150) {
|
||||
mess = mess.substring(0, 150);
|
||||
}
|
||||
mess = mess.replace("\n", " "); //hexMsgColor //hexMsgColor
|
||||
mess = mess.replace("\n", " ");
|
||||
//messageString = Emoji.replaceEmoji(AndroidUtilities.replaceTags(String.format("<c#ff4d83b3>%s:</c> <c#ff808080>%s</c>", name, mess)), messagePaint.getFontMetricsInt(), AndroidUtilities.dp(20));
|
||||
messageString = Emoji.replaceEmoji(AndroidUtilities.replaceTags(String.format("<c" + hexDarkColor + ">%s:</c> <c" + hexMsgColor + ">%s</c>", name, mess)), messagePaint.getFontMetricsInt(), AndroidUtilities.dp(20));
|
||||
} else {
|
||||
@ -392,8 +392,8 @@ public class DialogCell extends BaseCell {
|
||||
mess = mess.substring(0, 150);
|
||||
}
|
||||
mess = mess.replace("\n", " ");
|
||||
//messageString = Emoji.replaceEmoji(AndroidUtilities.replaceTags(String.format("<c#ff4d83b3>%s:</c> <c#ff808080>%s</c>", name, mess.replace("<", "<").replace(">", ">"))), messagePaint.getFontMetricsInt(), AndroidUtilities.dp(20));
|
||||
messageString = Emoji.replaceEmoji(AndroidUtilities.replaceTags(String.format("<c" + hexDarkColor + ">%s:</c> <c" + hexMsgColor + ">%s</c>", name, mess.replace("<", "<").replace(">", ">"))), messagePaint.getFontMetricsInt(), AndroidUtilities.dp(20));
|
||||
//messageString = Emoji.replaceEmoji(AndroidUtilities.replaceTags(String.format("<c#ff4d83b3>%s:</c> <c#ff808080>%s</c>", name, mess)), messagePaint.getFontMetricsInt(), AndroidUtilities.dp(20));
|
||||
messageString = Emoji.replaceEmoji(AndroidUtilities.replaceTags(String.format("<c" + hexDarkColor + ">%s:</c> <c" + hexMsgColor + ">%s</c>", name, mess)), messagePaint.getFontMetricsInt(), AndroidUtilities.dp(20));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -17,6 +17,7 @@ import android.widget.FrameLayout;
|
||||
import android.widget.TextView;
|
||||
|
||||
import org.telegram.android.AndroidUtilities;
|
||||
import org.telegram.messenger.R;
|
||||
import org.telegram.ui.Components.LayoutHelper;
|
||||
|
||||
public class DrawerActionCell extends FrameLayout {
|
||||
@ -61,6 +62,9 @@ public class DrawerActionCell extends FrameLayout {
|
||||
textView.setTextColor(AndroidUtilities.getIntDef("drawerOptionColor", 0xff444444));
|
||||
textView.setTextSize(TypedValue.COMPLEX_UNIT_DIP, AndroidUtilities.getIntDef("drawerOptionSize", 15));
|
||||
Drawable[] drawables = textView.getCompoundDrawables();
|
||||
if(drawables[0].getConstantState().equals(getResources().getDrawable(R.drawable.menu_themes).getConstantState())){
|
||||
return;
|
||||
}
|
||||
int color = AndroidUtilities.getIntDef("drawerIconColor", 0xff737373);
|
||||
if(drawables[0] != null)drawables[0].setColorFilter(color, PorterDuff.Mode.SRC_IN);
|
||||
}
|
||||
|
@ -165,6 +165,8 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
|
||||
private ListView mentionListView;
|
||||
private AnimatorSetProxy mentionListAnimation;
|
||||
|
||||
private ImageView deleteIconImageView;
|
||||
|
||||
private boolean allowStickersPanel;
|
||||
private AnimatorSetProxy runningAnimation;
|
||||
|
||||
@ -242,8 +244,8 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
|
||||
private float startX = 0;
|
||||
private float startY = 0;
|
||||
|
||||
private final static int quoteforward = 0;
|
||||
private final static int copy = 1;
|
||||
private final static int quoteforward = 12;
|
||||
private final static int forward = 2;
|
||||
private final static int delete = 3;
|
||||
private final static int chat_enc_timer = 4;
|
||||
@ -1661,17 +1663,24 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
|
||||
replyIconImageView.setScaleType(ImageView.ScaleType.CENTER);
|
||||
replyLayout.addView(replyIconImageView, LayoutHelper.createFrame(52, 46, Gravity.TOP | Gravity.LEFT));
|
||||
|
||||
ImageView imageView = new ImageView(context);
|
||||
imageView.setImageResource(R.drawable.delete_reply);
|
||||
imageView.setScaleType(ImageView.ScaleType.CENTER);
|
||||
replyLayout.addView(imageView, LayoutHelper.createFrame(52, 46, Gravity.RIGHT | Gravity.TOP, 0, 0.5f, 0, 0));
|
||||
imageView.setOnClickListener(new View.OnClickListener() {
|
||||
|
||||
deleteIconImageView = new ImageView(context);
|
||||
//ImageView imageView = new ImageView(context);
|
||||
// imageView.setImageResource(R.drawable.delete_reply);
|
||||
// imageView.setScaleType(ImageView.ScaleType.CENTER);
|
||||
//replyLayout.addView(imageView, LayoutHelper.createFrame(52, 46, Gravity.RIGHT | Gravity.TOP, 0, 0.5f, 0, 0));
|
||||
//imageView.setOnClickListener(new View.OnClickListener() {
|
||||
deleteIconImageView.setImageResource(R.drawable.delete_reply);
|
||||
deleteIconImageView.setScaleType(ImageView.ScaleType.CENTER);
|
||||
replyLayout.addView(deleteIconImageView, LayoutHelper.createFrame(52, 46, Gravity.RIGHT | Gravity.TOP, 0, 0.5f, 0, 0));
|
||||
deleteIconImageView.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
if (forwardingMessages != null) {
|
||||
forwardingMessages.clear();
|
||||
}
|
||||
showReplyPanel(false, null, null, foundWebPage, true, true);
|
||||
v.setVisibility(View.INVISIBLE);
|
||||
showReplyPanel(false, null, null, foundWebPage, true, true);
|
||||
}
|
||||
});
|
||||
|
||||
@ -1767,7 +1776,7 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
|
||||
}));
|
||||
}
|
||||
|
||||
imageView = new ImageView(context);
|
||||
ImageView imageView = new ImageView(context);
|
||||
imageView.setImageResource(R.drawable.stickers_back_arrow);
|
||||
stickersPanel.addView(imageView, LayoutHelper.createFrame(LayoutHelper.WRAP_CONTENT, LayoutHelper.WRAP_CONTENT, Gravity.BOTTOM | Gravity.LEFT, 53, 0, 0, 0));
|
||||
|
||||
@ -1938,7 +1947,7 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//(false, null, null, foundWebPage, true, true)
|
||||
public void showReplyPanel(boolean show, MessageObject messageObject, ArrayList<MessageObject> messageObjects, TLRPC.WebPage webPage, boolean cancel, boolean animated) {
|
||||
if (show) {
|
||||
if (messageObject == null && messageObjects == null && webPage == null) {
|
||||
@ -2123,6 +2132,12 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
|
||||
replyImageLocation = null;
|
||||
SharedPreferences preferences = ApplicationLoader.applicationContext.getSharedPreferences("mainconfig", Activity.MODE_PRIVATE);
|
||||
preferences.edit().remove("reply_" + dialog_id).commit();
|
||||
//New plus
|
||||
replyImageView.setImageDrawable(null);
|
||||
replyIconImageView.setImageDrawable(null);
|
||||
replyNameTextView.setText("");
|
||||
replyObjectTextView.setText("");
|
||||
deleteIconImageView.setImageDrawable(null);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -47,6 +47,7 @@ import org.telegram.android.MessagesStorage;
|
||||
import org.telegram.android.NotificationCenter;
|
||||
import org.telegram.android.SendMessagesHelper;
|
||||
import org.telegram.messenger.ApplicationLoader;
|
||||
import org.telegram.messenger.BuildConfig;
|
||||
import org.telegram.messenger.ConnectionsManager;
|
||||
import org.telegram.messenger.FileLog;
|
||||
import org.telegram.messenger.R;
|
||||
@ -103,9 +104,13 @@ public class LaunchActivity extends Activity implements ActionBarLayout.ActionBa
|
||||
|
||||
private Runnable lockRunnable;
|
||||
|
||||
private int themingRow = 7;
|
||||
private int communityRow = 9;
|
||||
private int versionRow = 10;
|
||||
private int versionRow = 11;
|
||||
private int contactsRow = 6;
|
||||
private int settingsRow = 9;
|
||||
private int themingRow = 8;
|
||||
private int communityRow = 10;
|
||||
private int faqRow = 12;
|
||||
private int themesRow = 7;
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
@ -293,25 +298,16 @@ public class LaunchActivity extends Activity implements ActionBarLayout.ActionBa
|
||||
args.putBoolean("broadcast", true);
|
||||
presentFragment(new GroupCreateActivity(args));
|
||||
drawerLayoutContainer.closeDrawer(false);
|
||||
} else if (position == 6) {
|
||||
} else if (position == contactsRow) {
|
||||
presentFragment(new ContactsActivity(null));
|
||||
drawerLayoutContainer.closeDrawer(false);
|
||||
} else if (position == themingRow) {
|
||||
/*
|
||||
try {
|
||||
Intent intent = new Intent(Intent.ACTION_SEND);
|
||||
intent.setType("text/plain");
|
||||
intent.putExtra(Intent.EXTRA_TEXT, ContactsController.getInstance().getInviteText());
|
||||
startActivityForResult(Intent.createChooser(intent, LocaleController.getString("InviteFriends", R.string.InviteFriends)), 500);
|
||||
} catch (Exception e) {
|
||||
FileLog.e("tmessages", e);
|
||||
}*/
|
||||
presentFragment(new ThemingActivity());
|
||||
drawerLayoutContainer.closeDrawer(false);
|
||||
} else if (position == 8) {
|
||||
} else if (position == settingsRow) {
|
||||
presentFragment(new SettingsActivity());
|
||||
drawerLayoutContainer.closeDrawer(false);
|
||||
} else if (position == 11) {
|
||||
} else if (position == faqRow) {
|
||||
try {
|
||||
Intent pickIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(LocaleController.getString("TelegramFaqUrl", R.string.TelegramFaqUrl)));
|
||||
startActivityForResult(pickIntent, 500);
|
||||
@ -325,7 +321,7 @@ public class LaunchActivity extends Activity implements ActionBarLayout.ActionBa
|
||||
if(Locale.getDefault().getLanguage().contains("es")){
|
||||
link = "https://plus.google.com/communities/111922519175849600270";
|
||||
}
|
||||
startActivityForResult(new Intent(Intent.ACTION_VIEW, Uri.parse(link)), 500);
|
||||
startActivityForResult(new Intent(Intent.ACTION_VIEW, Uri.parse(link)), 501);
|
||||
} catch (Exception e) {
|
||||
FileLog.e("tmessages", e);
|
||||
}
|
||||
@ -333,7 +329,22 @@ public class LaunchActivity extends Activity implements ActionBarLayout.ActionBa
|
||||
} else if (position == versionRow) {
|
||||
try {
|
||||
Intent pickIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://play.google.com/store/apps/details?id=org.telegram.plus"));
|
||||
startActivityForResult(pickIntent, 500);
|
||||
startActivityForResult(pickIntent, 502);
|
||||
} catch (Exception e) {
|
||||
FileLog.e("tmessages", e);
|
||||
}
|
||||
drawerLayoutContainer.closeDrawer(false);
|
||||
} else if (position == themesRow) {
|
||||
try {
|
||||
String packageName = "es.rafalense.themes";
|
||||
if(BuildConfig.DEBUG)packageName = "es.rafalense.themes.beta";
|
||||
Intent intent = getPackageManager().getLaunchIntentForPackage(packageName);
|
||||
if(intent == null) {
|
||||
intent = new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id="+packageName));
|
||||
if(BuildConfig.DEBUG)intent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://rink.hockeyapp.net/apps/b5860b775ca122d3335685f39917e68f"));
|
||||
}
|
||||
//Toast.makeText(getApplicationContext(), intent.toString(), Toast.LENGTH_SHORT).show();
|
||||
startActivityForResult(intent, 503);
|
||||
} catch (Exception e) {
|
||||
FileLog.e("tmessages", e);
|
||||
}
|
||||
|
@ -13,6 +13,7 @@ import android.app.AlertDialog;
|
||||
import android.content.Context;
|
||||
import android.content.DialogInterface;
|
||||
import android.content.SharedPreferences;
|
||||
import android.content.pm.PackageInfo;
|
||||
import android.content.res.Configuration;
|
||||
import android.graphics.PorterDuff;
|
||||
import android.view.Gravity;
|
||||
@ -29,6 +30,7 @@ import android.widget.Toast;
|
||||
import org.telegram.android.AndroidUtilities;
|
||||
import org.telegram.android.LocaleController;
|
||||
import org.telegram.messenger.ApplicationLoader;
|
||||
import org.telegram.messenger.FileLog;
|
||||
import org.telegram.messenger.R;
|
||||
import org.telegram.messenger.Utilities;
|
||||
import org.telegram.ui.ActionBar.ActionBar;
|
||||
@ -201,6 +203,13 @@ public class ThemingActivity extends BaseFragment {
|
||||
if (getParentActivity() != null) {
|
||||
String pName = userInput.getText().toString();
|
||||
AndroidUtilities.setStringPref(getParentActivity(),"themeName", pName);
|
||||
try{
|
||||
PackageInfo pInfo = ApplicationLoader.applicationContext.getPackageManager().getPackageInfo(ApplicationLoader.applicationContext.getPackageName(), 0);
|
||||
AndroidUtilities.setStringPref(getParentActivity(),"version", pInfo.versionName);
|
||||
} catch (Exception e) {
|
||||
FileLog.e("tmessages", e);
|
||||
}
|
||||
AndroidUtilities.setStringPref(getParentActivity(),"model", android.os.Build.MODEL+"/"+android.os.Build.VERSION.RELEASE);
|
||||
Utilities.savePreferencesToSD(getParentActivity(), AndroidUtilities.THEME_PREFS+".xml", pName+".xml", true);
|
||||
Utilities.copyWallpaperToSD(getParentActivity(), pName, true);
|
||||
//Toast toast = Toast.makeText(getParentActivity(), LocaleController.getString("SaveThemeToastText", R.string.SaveThemeToastText), Toast.LENGTH_SHORT);
|
||||
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 921 B After Width: | Height: | Size: 744 B |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 2.2 KiB |
@ -781,7 +781,7 @@
|
||||
<string name="formatDateAtTime">%1$s الساعة %2$s</string>
|
||||
<!--update text-->
|
||||
<string name="updateText">تم تحديث تيليجرام نسخة الأندرويد. الجديد في النسخة ٢.٨:\n\n- روابط الدعوة للمجموعات\n- الإشعارات الذكية\n- خيار الملصقات في قائمة الإموجي\n- التعليقات للصور\n- الأماكن في خدمة المواقع\n- وضعية \"مسموع\" في الرسائل الصوتية\n- شرح متطور لحالة الطرف الآخر: يرسل صورة، يسجل مقطع صوتي، إلخ\n- تطوير التحريك والحركات داخل التطبيق ليكون أسهل وأسرع</string>
|
||||
<string name="updateBuild">523</string>
|
||||
<string name="updateBuild">526</string>
|
||||
<!--Telegram+ arabic-->
|
||||
<string name="TelegramForAndroid">تلغرام للاندرويد</string>
|
||||
<string name="Theming">Theming</string>
|
||||
|
@ -780,12 +780,10 @@
|
||||
<string name="formatterDay12H">h:mm a</string>
|
||||
<string name="formatDateAtTime">%1$s um %2$s</string>
|
||||
<!--update text-->
|
||||
<string name="updateText">Plus Messenger für Android wurde aktualisiert. Neu in 2.8:\n\n- Einladungslinks für Gruppenchats\n- Intelligente Benachrichtigungen\n- Sticker Tab im Emojimenü\n- Beschriftungen für Bilder\n- Orte in der Umgebung im Standortmenü\n- \'Angehört\'-Status Sprachnachrichten\n- Erweiterterte \'schreibt gerade\' Status: schickt Bild, nimmt Audio auf, etc.\n- Verbesserter Bildlauf und flüssige Animationen</string>
|
||||
<string name="updateBuild">523</string>
|
||||
<string name="updateText">Plus Messenger für Android wurde aktualisiert.</string>
|
||||
<string name="updateBuild">526</string>
|
||||
<!--Telegram+ German-->
|
||||
<!--update-->
|
||||
<string name="updatePlusText">\n\nNeu in 2.8.1.3:\n\n- Sprechblasenform ändern\n- Option in den Einstellungen um Dateien mit Original Dateinamen zu speichern\n- Option um Sticker aus der Galerie im Chat zu senden\n- Profilbildgröße im Chat und Chatübersicht ändern\n- Profilbild Randabstand links im Chat und Chatübersicht ändern\n- Profilbild im Gruppenchat nach oben\n- Gruppenname Farbe und Größe in der Chatübersicht\n- Kontaktname Farbe mit unbekannter Nummer ändern\n- Fehlerbeseitigungen</string>
|
||||
<!--update-->
|
||||
<string name="updatePlusText">\n\nNeu in 2.8.1.6:\n\n- Option im Navigationsmenü hinzugefügt, um Plus Themes für Plus Messenger zu öffnen \n- \"Löschen Chat\" Option innerhalb des Chat funktioniert wieder \n- Text für Bild- und Video bekommt ordnungsgemäße Farbe \n- Bug showing replied/forwarded text when text input is transparent fixed \n- weitere kleinere Bugs beseitigt</string>
|
||||
<string name="TelegramForAndroid">Plus Messenger für Android</string>
|
||||
<string name="Theming">Theming</string>
|
||||
<string name="colorHexInvalid">Ungültiger Hex Code!</string>
|
||||
|
@ -780,10 +780,10 @@
|
||||
<string name="formatterDay12H">h:mm a</string>
|
||||
<string name="formatDateAtTime">%1$s a las %2$s</string>
|
||||
<!--update text-->
|
||||
<string name="updateText">Plus Messenger para Android ha sido actualizada. Novedades en la versión 2.8:\n\n- Enlaces de invitación para chats grupales\n- Notificaciones inteligentes\n- Pestaña de stickers en el menú de emojis\n- Comentarios en las fotos\n- Lugares y direcciones en las ubicaciones\n- Estado \'escuchado\' para los mensajes de voz\n- Estado \'escribiendo\' avanzado: enviando foto, grabando audio, etc.\n- Deslizamiento y animaciones mejoradas para una experiencia fluiiiiiiiiiiiiiiiiiida</string>
|
||||
<string name="updateBuild">523</string>
|
||||
<string name="updateText">Plus Messenger para Android ha sido actualizada.</string>
|
||||
<string name="updateBuild">526</string>
|
||||
<!--Telegram+ Spanish-->
|
||||
<string name="updatePlusText">\n\nNovedades en 2.8.1.3:\n\n- Nuevo MOD para cambiar estilo de bocadillos (3 estilos nuevos)\n- Opción para guardar automáticamente ficheros usando nombre original\n- Nueva opción para enviar sticker directamente desde la galería\n- Nuevo MOD para cambiar tamaño de avatares en pantalla principal y chat\n- Nuevo MOD para ajustar margen izquierdo de avatares en pantalla principal y chat\n- Opción para ajustar avatares arriba del bocadillo en vez de abajo en chat\n- Nuevos MODs para cambiar color y tamaño de nombre de grupo en pantalla principal\n- Nuevo MOD para cambiar color de nombre de contacto con número desconocido en pantalla principal\n- Solución de errores</string>
|
||||
<string name="updatePlusText">\n\nNovedades en 2.8.1.6:\n\n- Añadida opción en el menú de navegación para abrir la app Temas para Plus Messenger\n - Opción "Eliminar chat" dentro de chat funciona de nuevo\n -Comentarios en fotos y vídeos ya cogen color adecuado\n -Solucionado error que mostraba texto reenviado cuando el fondo de entrada de texto es transparente\n- Otros errores menores solucionados</string>
|
||||
<string name="TelegramForAndroid">Plus Messenger para Android</string>
|
||||
<string name="Theming">Tematización</string>
|
||||
<string name="colorHexInvalid">¡Color hexadecimal inválido!</string>
|
||||
|
@ -780,8 +780,8 @@ Si vous oubliez votre mot de passe, vous perdrez l\'accès à votre compte Teleg
|
||||
<string name="formatterDay12H">h:mm a</string>
|
||||
<string name="formatDateAtTime">%1$s à %2$s</string>
|
||||
<!--update text-->
|
||||
<string name="updateText">Plus Messenger pour Android vient d\'être mis à jour. Nouveautés de la version 2.8:\n\n- Liens d\'invitation pour les conversations en groupe\n- Notifications intelligentes\n- Onglet stickers dans le menu des émoticônes\n- Légendes sur les photos\n- Emplacements et itinéraires dans l\'écran de localisation\n- Statut \'Écouté\' pour les messages vocaux\n- Statut \'écrit\' plus varié : envoie une photo, enregistre un son, etc.\n- Défilement du contenu amélioré et ajout d\'animations pour une expérience fluiiiiiiiide!\n\nPour plus d\'infos (en anglais) :\ntelegram.org/blog/captions-places</string>
|
||||
<string name="updateBuild">523</string>
|
||||
<string name="updateText">Plus Messenger pour Android vient d\'être mis à jour.</string>
|
||||
<string name="updateBuild">526</string>
|
||||
<!--Telegram+ French-->
|
||||
<!--Smart Notifications-->
|
||||
<string name="SmartNotification">Notification intelligente</string>
|
||||
|
@ -780,11 +780,11 @@
|
||||
<string name="formatterDay12H">h:mm a</string>
|
||||
<string name="formatDateAtTime">%1$s alle %2$s</string>
|
||||
<!--update text-->
|
||||
<string name="updateText">Plus Messenger per Android si è aggiornato. Nuovo nella versione 2.8:\n\n- Invita nei gruppi tramite link\n- Notifiche intelligenti\n- Pannello degli sticker nella lista emoji\n- Luoghi e direzioni nelle posizioni\n- Stato \'ascoltato\' per i messaggi vocali\n- Stato di scrittura \'avanzato\': inviando una foto, registrando un audio, etc\n- Animazioni e scorrimento migliorati per un\'esperienza rapidissimaaaa</string>
|
||||
<string name="updateBuild">523</string>
|
||||
<string name="updateText">Plus Messenger per Android si è aggiornato.</string>
|
||||
<string name="updateBuild">526</string>
|
||||
<!--Telegram+ Italian-->
|
||||
<!--update-->
|
||||
<string name="updatePlusText">\n\nNovità nella 2.8.1.3:\n\n- Nuova MOD per cambiare lo stile delle nuvolette\n- Aggiunta opzione nelle impostazioni per salvare i file usando il nome di origine\n- Aggiunta opzione nella chat per inviare gli sticker dalla galleria\n- Nuova MOD per cambiare la dimensione dell\'avatar nella schermata principale e della chat\n- Nuova MOD per cambiare il margine sinistro dell\'avatar nella schermata principale e della chat\n- Opzione per allineare l\'avatar all\'intestazione invece che al fondo nella schermata della chat\n- Nuove MOD per cambiare il colore del nome del gruppo e la dimensione nella schermata principale\n- Nuova MOD per cambiare il colore del nome del contatto con numero sconosciuto\n- Correzioni bug</string>
|
||||
<string name="updatePlusText">\n\nNovità nella 2.8.1.6:\n\n- Correzioni bug</string>
|
||||
<!--update-->
|
||||
<string name="TelegramForAndroid">Plus Messenger per Android</string>
|
||||
<string name="Theming">Personalizzazione</string>
|
||||
|
@ -781,5 +781,5 @@
|
||||
<string name="formatDateAtTime">%1$s %2$s</string>
|
||||
<!--update text-->
|
||||
<string name="updateText">텔레그램 안드로이드가 업데이트 되었습니다. 새로운 버전 2.8:\n\n-그룹방 초대링크 기능\n-스마트 알림\n-이모티콘 스티커탭\n-사진 설명 기능\n-위치에 장소 및 안내 기능\n-음성 메시지 \'청취확인\' 기능\n-\'입력 중\' 확장 : 사진 보내는중, 녹음 중등\n-부드러운 스크롤링 및 애니메이션 향상</string>
|
||||
<string name="updateBuild">523</string>
|
||||
<string name="updateBuild">526</string>
|
||||
</resources>
|
@ -780,8 +780,8 @@
|
||||
<string name="formatterDay12H">h:mm a</string>
|
||||
<string name="formatDateAtTime">%1$s om %2$s</string>
|
||||
<!--update text-->
|
||||
<string name="updateText">Plus Messenger voor Android is geüpdatet. Nieuw in versie 2.8:\n\n- Uitnodigingslinks voor groepchats\n- Slimme meldingen\n- Stickerstab in emojimenu\n- Onderschriften voor foto\'s\n- Plekken en routebeschrijvingen op locaties\n- \'Beluistered\'-status voor spraakberichten\n- Geadvanceerde \'aan het typen\'-status: verstuurt een foto, audio opnemen, etc.\n- Scrollen en animaties verbeterd voor een soepele ervaring</string>
|
||||
<string name="updateBuild">523</string>
|
||||
<string name="updateText">Plus Messenger voor Android is geüpdatet.</string>
|
||||
<string name="updateBuild">526</string>
|
||||
<!--Telegram+ Dutch-->
|
||||
<string name="TelegramForAndroid">Plus Messenger voor Android</string>
|
||||
<string name="Theming">Thema\'s</string>
|
||||
|
@ -780,11 +780,11 @@
|
||||
<string name="formatterDay12H">h:mm a</string>
|
||||
<string name="formatDateAtTime">%1$s às %2$s</string>
|
||||
<!--update text-->
|
||||
<string name="updateText">Plus Messenger para Android atualizado: Novidades na versão 2.8:\n\n- Link de convite para chats em grupo\n- Notificações inteligentes\n- Botão para stickers no menu de emojis\n- Legendas para fotos\n- Lugares e direções nas localizações\n- Status \'ouvido\' para mensagens de voz\n- Status \'escrevendo\' avançado: enviando foto, gravando áudio, etc.\n- Melhorias nas animações de rolagem para uma leeeeeeeve experiência</string>
|
||||
<string name="updateBuild">523</string>
|
||||
<string name="updateText">Plus Messenger para Android atualizado.</string>
|
||||
<string name="updateBuild">526</string>
|
||||
<!--Telegram+ Portuguese (Brasil)-->
|
||||
<!--update-->
|
||||
<string name="updatePlusText">\n\nNovidades da versão 2.8.1.3:\n\n- Novo MOD para alterar o estilo das bolhas\n- Adicionada a opção nas Configurações para salvar os arquivos com o nome original\n- Adicionada opção para enviar adesivos da Galeria\n- Novo MOD para alterar o tamanho dos avatares nas telas de conversa e lista\n- Novo MOD para alterar a margem esquerda nas telas principais e de conversa\n- Opção para alinhar o avatar no topo das bolhas na tela de conversas\n- Novos MODs para alterar as cores dos nomes de grupo e tamanho na tela principal\n- Novo MOD para alterar a cor de nome de contatos desconhecidos na tela principal\n- Correções de bugs</string>
|
||||
<string name="updatePlusText">\n\nNovidades da versão 2.8.1.6:\n\n- Correções de bugs</string>
|
||||
<!--update-->
|
||||
<string name="TelegramForAndroid">Plus Messenger para Android</string>
|
||||
<string name="Theming">Personalização</string>
|
||||
|
@ -780,8 +780,8 @@
|
||||
<string name="formatterDay12H">h:mm a</string>
|
||||
<string name="formatDateAtTime">%1$s às %2$s</string>
|
||||
<!--update text-->
|
||||
<string name="updateText">Plus Messengerpara Android atualizado: Novidades na versão 2.8:\n\n- Link de convite para chats em grupo\n- Notificações inteligentes\n- Botão para stickers no menu de emojis\n- Legendas para fotos\n- Lugares e direções nas localizações\n- Status \'ouvido\' para mensagens de voz\n- Status \'escrevendo\' avançado: enviando foto, gravando áudio, etc.\n- Melhorias nas animações de rolagem para uma leeeeeeeve experiência</string>
|
||||
<string name="updateBuild">523</string>
|
||||
<string name="updateText">Plus Messengerpara Android atualizado.</string>
|
||||
<string name="updateBuild">526</string>
|
||||
<!--Telegram+ Portuguese(Portugal)-->
|
||||
<!--Smart Notifications
|
||||
<string name="SmartNotification">Notificação Inteligente</string>
|
||||
|
@ -394,9 +394,7 @@
|
||||
<!--date formatters-->
|
||||
<string name="formatterDay24H">SS:dd</string>
|
||||
<!--Telegram+ Turkish-->
|
||||
<!--update-->
|
||||
<string name="updatePlusText">\n\n2.8.1.3\'deki Yenilikler:\n\n- Baloncuk tarzını değiştirmek için yeni MOD eklendi\n- Ayarlara kaydedilen dosyaların orijinal dosya adını kullanma opsiyonu eklendi\n- Sohbete galeriden sticker gönderme opsiyonu eklendi\n- Ana ekranda ve sohbet ekranında avatar boyutunu değiştirmek için yeni MOD eklendi \n- Ana ekranda ve sohbet ekranında sol avatar boşluğunu değiştirmek için MOD eklendi\n- Sohbet ekranında avatarı üste veya alta hizalama opsiyonu eklendi\n- Ana ekranda grup ismini ve boyutunu değiştirmek için yeni MOD eklendi\n- Bilinmeyen numaraların rengini değiştirmek için yeni MOD eklendi\n- Hata düzeltmeleri</string>
|
||||
<!--update-->
|
||||
<string name="updatePlusText">\n\n2.8.1.6\'daki Yenilikler:\n\n- Sol menüye Plus Messenger için Temalar seçeneği eklendi app\n- \"Sohbeti Sil\" seçeneği tekrar çalışıyor\n- Artık resim ve video altyazıları uygun rengi alıyor\n- Yazı saydam olduğunda çıkan Cevaplandı/İletildi yazısı hatası düzeltildi\n- Diğer küçük hata düzeltmeleri</string>
|
||||
<string name="TelegramForAndroid">Android için Plus Messenger</string>
|
||||
<string name="Theming">Tema</string>
|
||||
<string name="colorHexInvalid">Geçersiz renk hex kodu!</string>
|
||||
|
@ -778,7 +778,7 @@
|
||||
<string name="formatDateAtTime">%1$s 於時間 %2$s</string>
|
||||
<!--update text-->
|
||||
<string name="updateText">Android 版的 Plus Messenger 已經更新了。在 2.8 版的新功能:\n\n- 群組聊天室的邀請連結\n- 智慧通知\n- 表情符號選單裡的貼圖分頁\n- 照片的說明文字\n- 位置功能中的地點與方向\n- 語音訊息的「已聽」狀態\n- 進階「輸入」狀態:正在傳送照片、正在錄音等等。\n- 改善的頁面捲動及動畫的超平滑體驗\n\更多關於此次更新的詳情:\ntelegram.org/blog/captions-places</string>
|
||||
<string name="updateBuild">523</string>
|
||||
<string name="updateBuild">526</string>
|
||||
<!--Telegram+-->
|
||||
<!--Smart Notifications-->
|
||||
<string name="SmartNotification">智能通知</string>
|
||||
|
@ -1,7 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
|
||||
|
||||
<resources>
|
||||
<string name="AppName">Plus Messenger</string>
|
||||
<string name="ShortAppName">Plus</string>
|
||||
@ -781,10 +779,10 @@
|
||||
<string name="formatterDay12H">h:mm a</string>
|
||||
<string name="formatDateAtTime">%1$s at %2$s</string>
|
||||
<!--update text-->
|
||||
<string name="updateText">Plus Messenger for Android has been updated. New in version 2.8:\n\n- Places and directions in locations\n- Smart notifications\n- Invite links for group chats\n- Stickers tab in emoji menu\n- Captions for photos\n- \'Listened\' status for voice messages\n- Advanced \'typing\' status: sending photo, recording audio, etc.\n- Improved scrolling and animations for a smooooooooth experience</string>
|
||||
<string name="updateBuild">523</string>
|
||||
<string name="updateText">Plus Messenger for Android has been updated.</string>
|
||||
<string name="updateBuild">526</string>
|
||||
<!--Telegram+ English-->
|
||||
<string name="updatePlusText">\n\nNew in 2.8.1.3:\n\n- New MOD to change bubbles style (3 new styles, more will come)\n- Added option in Settings to save files using original file name\n- Added option in chat to send sticker directly from gallery\n- New MOD to change avatar size in main and chat screen\n- New MOD to change avatar left margin in main and chat screen\n- Option to align avatar to top instead of bottom in chat screen\n- New MODs to change group name color and size in main screen\n- New MOD to change contact name color with unknown number\n- Bug fixes</string>
|
||||
<string name="updatePlusText">\n\nNew in 2.8.1.6:\n\n- Added option in navigation menu to open new Themes for Plus Messenger app\n -"Delete chat" option inside chat is working again\n -Now image and video caption gets proper color\n -Bug showing replied/forwarded text when text input is transparent fixed\n- Other minor bug fixes</string>
|
||||
<string name="TelegramForAndroid">Plus Messenger for Android</string>
|
||||
<string name="Theming">Theming</string>
|
||||
<string name="colorHexInvalid">Invalid color hex code!</string>
|
||||
|