Skip to content

Commit

Permalink
typo: use ! makes statement true or false in release adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
androidlover5842 committed Jan 20, 2017
1 parent a1a15ad commit 9dbc0cd
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ protected View onView(int position, View convertView, ViewGroup parent)
public void onClick(View v)
{
try {
fileName = release.getString("name");
fileName = release.getString("name");
fileId = release.getLong("id");
uri = Uri.parse(release.getString("browser_download_url"));
} catch (JSONException e) {
Expand All @@ -91,9 +91,9 @@ public void onClick(View v)
@Override
public void onClick(View v) {
PutStringPreferences(mContext,"FilePath", fileIns.getPath());
if (!RootTools.isRootAvailable()) {
if(RootTools.isRootAvailable()) {

if (!RootTools.isAccessGiven()) {
if (RootTools.isAccessGiven()) {
mContext.startActivity(new Intent(mContext, OpenScriptGenerator.class));
}
else {
Expand Down

0 comments on commit 9dbc0cd

Please sign in to comment.