toast lengths, no need to check vercode != 0

This commit is contained in:
Daniel Martí 2013-05-07 20:08:11 +02:00
parent f4a7aa7ced
commit 24c2b9731c

View File

@ -473,13 +473,11 @@ public class AppDetails extends ListActivity {
@Override
protected void onListItemClick(ListView l, View v, int position, long id) {
curapk = app.apks.get(position - l.getHeaderViewsCount());
if (app.installedVerCode != 0
&& app.installedVerCode == curapk.vercode) {
if (app.installedVerCode == curapk.vercode)
removeApk(app.id);
} else {
else
install();
}
}
@Override
public boolean onPrepareOptionsMenu(Menu menu) {
@ -539,7 +537,7 @@ public class AppDetails extends ListActivity {
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(s)));
} catch (android.content.ActivityNotFoundException e) {
Toast toast = Toast.makeText(this,
getString(R.string.no_handler_app, s), 4);
getString(R.string.no_handler_app, s), Toast.LENGTH_LONG);
toast.show();
}
}