Skip to content

Commit 9dbc0cd

Browse files
typo: use ! makes statement true or false in release adapter
1 parent a1a15ad commit 9dbc0cd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/src/main/java/io/github/otaupdater/otaupdater/adapter/GithubReleasesAdapter.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ protected View onView(int position, View convertView, ViewGroup parent)
7575
public void onClick(View v)
7676
{
7777
try {
78-
fileName = release.getString("name");
78+
fileName = release.getString("name");
7979
fileId = release.getLong("id");
8080
uri = Uri.parse(release.getString("browser_download_url"));
8181
} catch (JSONException e) {
@@ -91,9 +91,9 @@ public void onClick(View v)
9191
@Override
9292
public void onClick(View v) {
9393
PutStringPreferences(mContext,"FilePath", fileIns.getPath());
94-
if (!RootTools.isRootAvailable()) {
94+
if(RootTools.isRootAvailable()) {
9595

96-
if (!RootTools.isAccessGiven()) {
96+
if (RootTools.isAccessGiven()) {
9797
mContext.startActivity(new Intent(mContext, OpenScriptGenerator.class));
9898
}
9999
else {

0 commit comments

Comments
 (0)