Directly open link title

This commit is contained in:
M66B 2022-06-24 08:49:11 +02:00
parent 6e54723521
commit 83a9108db9
2 changed files with 5 additions and 1 deletions

View File

@ -203,7 +203,10 @@ public class FragmentDialogOpenLink extends FragmentDialogBase {
ibDifferent.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
etLink.setText(format(uriTitle, context));
Package pkg = (Package) spOpenWith.getSelectedItem();
Log.i("Open title uri=" + uri + " with=" + pkg);
boolean tabs = (pkg != null && pkg.tabs);
Helper.view(context, uriTitle, !tabs, !tabs);
}
});

View File

@ -44,6 +44,7 @@
android:maxLines="2"
android:text="Link title"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
android:textIsSelectable="true"
android:textStyle="italic"
app:layout_constraintEnd_toStartOf="@+id/ibDifferent"
app:layout_constraintStart_toStartOf="parent"