|
|
|
@ -19,19 +19,18 @@ import org.floens.chan.ui.activity.ReplyActivity; |
|
|
|
|
import org.floens.chan.ui.fragment.PostRepliesFragment; |
|
|
|
|
import org.floens.chan.ui.fragment.ReplyFragment; |
|
|
|
|
import org.floens.chan.utils.Logger; |
|
|
|
|
import org.floens.chan.utils.Utils; |
|
|
|
|
|
|
|
|
|
import android.app.Activity; |
|
|
|
|
import android.app.AlertDialog; |
|
|
|
|
import android.app.FragmentTransaction; |
|
|
|
|
import android.app.ProgressDialog; |
|
|
|
|
import android.content.ActivityNotFoundException; |
|
|
|
|
import android.content.ClipData; |
|
|
|
|
import android.content.ClipboardManager; |
|
|
|
|
import android.content.Context; |
|
|
|
|
import android.content.DialogInterface; |
|
|
|
|
import android.content.DialogInterface.OnClickListener; |
|
|
|
|
import android.content.Intent; |
|
|
|
|
import android.net.Uri; |
|
|
|
|
import android.text.TextUtils; |
|
|
|
|
import android.widget.CheckBox; |
|
|
|
|
import android.widget.Toast; |
|
|
|
@ -429,12 +428,7 @@ public class ThreadManager implements Loader.LoaderListener { |
|
|
|
|
* Linkable with an url. |
|
|
|
|
*/ |
|
|
|
|
private void openLink(PostLinkable linkable) { |
|
|
|
|
try { |
|
|
|
|
activity.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(linkable.value))); |
|
|
|
|
} catch (ActivityNotFoundException e) { |
|
|
|
|
e.printStackTrace(); |
|
|
|
|
Toast.makeText(activity, R.string.open_link_failed, Toast.LENGTH_LONG).show(); |
|
|
|
|
} |
|
|
|
|
Utils.openLink(activity, linkable.value); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void showPostsRepliesFragment(List<Post> list) { |
|
|
|
|