update fork #128

Manually merged
tristan merged 181 commits from mirror/monocles_chat_clean:master into master 2026-01-23 14:02:38 +01:00
2 changed files with 9 additions and 1 deletions
Showing only changes of commit c6150583b6 - Show all commits

Make story titles with long text scrollable

Arne 2026-01-08 23:38:35 +01:00

View file

@ -1,6 +1,7 @@
package eu.siacs.conversations.ui;
import android.os.Bundle;
import android.text.method.ScrollingMovementMethod;
import android.text.format.DateUtils;
import android.view.Menu;
import android.view.MenuItem;
@ -74,6 +75,11 @@ public class StoryViewActivity extends XmppActivity implements StoryFragment.OnS
viewPager = findViewById(R.id.view_pager);
titleView = findViewById(R.id.story_title_view);
titleView.setMovementMethod(new ScrollingMovementMethod());
titleView.setOnTouchListener((v, event) -> {
v.getParent().requestDisallowInterceptTouchEvent(true);
return false;
});
progressView = findViewById(R.id.story_progress_view);
bottomPanel = findViewById(R.id.bottom_panel);
@ -292,4 +298,4 @@ public class StoryViewActivity extends XmppActivity implements StoryFragment.OnS
invalidateOptionsMenu();
refreshUi();
}
}
}

View file

@ -71,6 +71,8 @@
android:layout_height="wrap_content"
android:autoLink="web"
android:linksClickable="true"
android:maxLines="8"
android:scrollbars="vertical"
android:textColor="@android:color/white"
android:textSize="18sp" />