mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
Disable execption.
This commit is contained in:
@@ -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));
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user