Bug fixes
This commit is contained in:
parent
213c2269c0
commit
2fcef37b9e
@ -82,7 +82,7 @@ android {
|
|||||||
defaultConfig {
|
defaultConfig {
|
||||||
minSdkVersion 8
|
minSdkVersion 8
|
||||||
targetSdkVersion 21
|
targetSdkVersion 21
|
||||||
versionCode 415
|
versionCode 416
|
||||||
versionName "2.3.2"
|
versionName "2.3.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -656,7 +656,7 @@ public class SecretChatHelper {
|
|||||||
TLObject toEncryptObject = null;
|
TLObject toEncryptObject = null;
|
||||||
if (AndroidUtilities.getPeerLayerVersion(chat.layer) >= 17) {
|
if (AndroidUtilities.getPeerLayerVersion(chat.layer) >= 17) {
|
||||||
TLRPC.TL_decryptedMessageLayer layer = new TLRPC.TL_decryptedMessageLayer();
|
TLRPC.TL_decryptedMessageLayer layer = new TLRPC.TL_decryptedMessageLayer();
|
||||||
layer.layer = Math.min(AndroidUtilities.getMyLayerVersion(chat.layer), AndroidUtilities.getPeerLayerVersion(chat.layer));
|
layer.layer = Math.min(17, AndroidUtilities.getPeerLayerVersion(chat.layer));
|
||||||
layer.message = req;
|
layer.message = req;
|
||||||
layer.random_bytes = new byte[Math.max(1, (int) Math.ceil(Utilities.random.nextDouble() * 16))];
|
layer.random_bytes = new byte[Math.max(1, (int) Math.ceil(Utilities.random.nextDouble() * 16))];
|
||||||
Utilities.random.nextBytes(layer.random_bytes);
|
Utilities.random.nextBytes(layer.random_bytes);
|
||||||
|
@ -70,5 +70,8 @@ public class StickerCell extends FrameLayoutFixed {
|
|||||||
setBackgroundResource(R.drawable.stickers_back_all);
|
setBackgroundResource(R.drawable.stickers_back_all);
|
||||||
setPadding(AndroidUtilities.dp(3), 0, AndroidUtilities.dp(3), 0);
|
setPadding(AndroidUtilities.dp(3), 0, AndroidUtilities.dp(3), 0);
|
||||||
}
|
}
|
||||||
|
if (getBackground() != null) {
|
||||||
|
getBackground().setAlpha(230);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1293,6 +1293,7 @@ public class LaunchActivity extends Activity implements ActionBarLayout.ActionBa
|
|||||||
}
|
}
|
||||||
if (fragment instanceof ChatActivity) {
|
if (fragment instanceof ChatActivity) {
|
||||||
if (!tabletFullSize && layout == rightActionBarLayout || tabletFullSize && layout == actionBarLayout) {
|
if (!tabletFullSize && layout == rightActionBarLayout || tabletFullSize && layout == actionBarLayout) {
|
||||||
|
boolean result = !(tabletFullSize && layout == actionBarLayout && actionBarLayout.fragmentsStack.size() == 1);
|
||||||
if (!layersActionBarLayout.fragmentsStack.isEmpty()) {
|
if (!layersActionBarLayout.fragmentsStack.isEmpty()) {
|
||||||
for (int a = 0; a < layersActionBarLayout.fragmentsStack.size() - 1; a++) {
|
for (int a = 0; a < layersActionBarLayout.fragmentsStack.size() - 1; a++) {
|
||||||
layersActionBarLayout.removeFragmentFromStack(layersActionBarLayout.fragmentsStack.get(0));
|
layersActionBarLayout.removeFragmentFromStack(layersActionBarLayout.fragmentsStack.get(0));
|
||||||
@ -1300,7 +1301,10 @@ public class LaunchActivity extends Activity implements ActionBarLayout.ActionBa
|
|||||||
}
|
}
|
||||||
layersActionBarLayout.closeLastFragment(!forceWithoutAnimation);
|
layersActionBarLayout.closeLastFragment(!forceWithoutAnimation);
|
||||||
}
|
}
|
||||||
return true;
|
if (!result) {
|
||||||
|
actionBarLayout.presentFragment(fragment, false, forceWithoutAnimation, false);
|
||||||
|
}
|
||||||
|
return result;
|
||||||
} else if (!tabletFullSize && layout != rightActionBarLayout) {
|
} else if (!tabletFullSize && layout != rightActionBarLayout) {
|
||||||
rightActionBarLayout.setVisibility(View.VISIBLE);
|
rightActionBarLayout.setVisibility(View.VISIBLE);
|
||||||
backgroundTablet.setVisibility(View.GONE);
|
backgroundTablet.setVisibility(View.GONE);
|
||||||
|
Loading…
Reference in New Issue
Block a user