Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
Magisk
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Magisk
Commits
ebb7a9fc
Commit
ebb7a9fc
authored
Aug 05, 2018
by
tonymanou
Committed by
John Wu
Aug 06, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Open links in a new task
parent
9e723173
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
MagiskInstallDialog.java
.../com/topjohnwu/magisk/components/MagiskInstallDialog.java
+1
-4
Utils.java
app/src/full/java/com/topjohnwu/magisk/utils/Utils.java
+1
-0
No files found.
app/src/full/java/com/topjohnwu/magisk/components/MagiskInstallDialog.java
View file @
ebb7a9fc
package
com
.
topjohnwu
.
magisk
.
components
;
package
com
.
topjohnwu
.
magisk
.
components
;
import
android.content.Intent
;
import
android.net.Uri
;
import
android.net.Uri
;
import
android.text.TextUtils
;
import
android.text.TextUtils
;
...
@@ -42,9 +41,7 @@ public class MagiskInstallDialog extends CustomAlertDialog {
...
@@ -42,9 +41,7 @@ public class MagiskInstallDialog extends CustomAlertDialog {
setNeutralButton
(
R
.
string
.
release_notes
,
(
d
,
i
)
->
{
setNeutralButton
(
R
.
string
.
release_notes
,
(
d
,
i
)
->
{
if
(
Data
.
magiskNoteLink
.
contains
(
"forum.xda-developers"
))
{
if
(
Data
.
magiskNoteLink
.
contains
(
"forum.xda-developers"
))
{
// Open forum links in browser
// Open forum links in browser
Intent
openLink
=
new
Intent
(
Intent
.
ACTION_VIEW
,
Uri
.
parse
(
Data
.
magiskNoteLink
));
Utils
.
openLink
(
activity
,
Uri
.
parse
(
Data
.
magiskNoteLink
));
openLink
.
addFlags
(
Intent
.
FLAG_ACTIVITY_NEW_TASK
);
mm
.
startActivity
(
openLink
);
}
else
{
}
else
{
new
MarkDownWindow
(
activity
,
null
,
Data
.
magiskNoteLink
).
exec
();
new
MarkDownWindow
(
activity
,
null
,
Data
.
magiskNoteLink
).
exec
();
}
}
...
...
app/src/full/java/com/topjohnwu/magisk/utils/Utils.java
View file @
ebb7a9fc
...
@@ -91,6 +91,7 @@ public class Utils {
...
@@ -91,6 +91,7 @@ public class Utils {
public
static
void
openLink
(
Context
context
,
Uri
link
)
{
public
static
void
openLink
(
Context
context
,
Uri
link
)
{
Intent
intent
=
new
Intent
(
Intent
.
ACTION_VIEW
,
link
);
Intent
intent
=
new
Intent
(
Intent
.
ACTION_VIEW
,
link
);
intent
.
addFlags
(
Intent
.
FLAG_ACTIVITY_NEW_TASK
);
if
(
intent
.
resolveActivity
(
context
.
getPackageManager
())
!=
null
)
{
if
(
intent
.
resolveActivity
(
context
.
getPackageManager
())
!=
null
)
{
context
.
startActivity
(
intent
);
context
.
startActivity
(
intent
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment