Some code formatting fixes in AppDetails
This commit is contained in:
parent
e52c17f586
commit
85b7e77324
@ -1206,7 +1206,9 @@ public class AppDetails extends ActionBarActivity implements ProgressListener, A
|
||||
}
|
||||
}
|
||||
}
|
||||
if (sb.length() > 0) sb.setLength(sb.length() - 1);
|
||||
if (sb.length() > 0) {
|
||||
sb.setLength(sb.length() - 1);
|
||||
}
|
||||
permissionListView.setText(sb.toString());
|
||||
}
|
||||
permissionHeader.setText(getString(R.string.permissions_for_long, getApks().getItem(0).version));
|
||||
@ -1414,9 +1416,9 @@ public class AppDetails extends ActionBarActivity implements ProgressListener, A
|
||||
@Override
|
||||
public void onListItemClick(ListView l, View v, int position, long id) {
|
||||
final Apk apk = getApks().getItem(position - l.getHeaderViewsCount());
|
||||
if (getApp().installedVersionCode == apk.vercode)
|
||||
if (getApp().installedVersionCode == apk.vercode) {
|
||||
remove();
|
||||
else if (getApp().installedVersionCode > apk.vercode) {
|
||||
} else if (getApp().installedVersionCode > apk.vercode) {
|
||||
AlertDialog.Builder ask_alrt = new AlertDialog.Builder(getActivity());
|
||||
ask_alrt.setMessage(getString(R.string.installDowngrade));
|
||||
ask_alrt.setPositiveButton(getString(R.string.yes),
|
||||
@ -1436,9 +1438,10 @@ public class AppDetails extends ActionBarActivity implements ProgressListener, A
|
||||
});
|
||||
AlertDialog alert = ask_alrt.create();
|
||||
alert.show();
|
||||
} else
|
||||
} else {
|
||||
install(apk);
|
||||
}
|
||||
}
|
||||
|
||||
public void removeSummaryHeader() {
|
||||
Fragment summary = getChildFragmentManager().findFragmentByTag(SUMMARY_TAG);
|
||||
|
Loading…
x
Reference in New Issue
Block a user