Skip to content
Snippets Groups Projects
Commit 8b18de6b authored by Pogman's avatar Pogman
Browse files

Extend user status log message size

parent 2f3c3edf
No related branches found
No related tags found
No related merge requests found
......@@ -663,7 +663,7 @@ public class MainActivity extends AppCompatActivity implements OnSharedPreferenc
}
}
private Queue<StatusMessage> messages = new ArrayBlockingQueue<>(10);
private Queue<StatusMessage> messages = new ArrayBlockingQueue<>(400);
@Override
public void onReceive(Context context, Intent intent) {
......@@ -671,7 +671,7 @@ public class MainActivity extends AppCompatActivity implements OnSharedPreferenc
Log.i(TAG, "Message Receiver: " + message);
synchronized (messages) {
while (messages.size() > 8) {
while (messages.size() > 398) {
messages.poll();
}
messages.add(new StatusMessage(message));
......
......@@ -128,18 +128,21 @@
android:id="@+id/scrollView"
android:layout_width="match_parent"
android:layout_height="fill_parent">
android:gravity="bottom"
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:gravity="bottom"
<TextView
android:id="@+id/textview_log"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_margin="10sp"
android:maxLines="20"
android:maxLines="800"
android:gravity="bottom"
android:text="" />
</LinearLayout>
</ScrollView>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment