Disable execption.

This commit is contained in:
B. Petersen
2016-10-05 17:32:33 +02:00
parent 887803e377
commit bd89a0ab72
3 changed files with 4 additions and 21 deletions
@@ -88,27 +88,6 @@ public class MessageObject {
public ArrayList<TextLayoutBlock> textLayoutBlocks;
// EDIT BY MR
/*
public MessageObject(long hMsg)
{
// init object
TLRPC.Message m = new TLRPC.Message();
m.to_id = new TLRPC.TL_peerUser();
m.to_id.user_id = -1; // self
m.from_id = 1;//MrMailbox.MrMsgGetFromId(hMsg);
m.message = "foox";
messageText = "foo";
type = 0; // 0 = text, 1000 = headline
contentType = 1;
AbstractMap<Integer, TLRPC.User> users;
MessageObject(m, users, null, true);
}
*/
// /EDIT BY MR
public MessageObject(TLRPC.Message message, AbstractMap<Integer, TLRPC.User> users, boolean generateLayout) {
this(message, users, null, generateLayout);
}
@@ -68,6 +68,8 @@ public class MrMailbox {
ret.message = "fooxyy";
ret.date = (int)MrMsgGetTimestamp(hMsg);
// MessageObject.contentType - ?
return ret;
}
@@ -10056,9 +10056,11 @@ public class RecyclerView extends ViewGroup implements ScrollingView, NestedScro
void assertLayoutStep(int accepted) {
if ((accepted & mLayoutStep) == 0) {
/* EDIT BY MR
throw new IllegalStateException("Layout state should be one of "
+ Integer.toBinaryString(accepted) + " but it is "
+ Integer.toBinaryString(mLayoutStep));
*/
}
}