Remove some commented out code

This commit is contained in:
Peter Serwylo 2016-11-30 23:39:33 +11:00
parent 920e6499ab
commit a0c40bcaae

View File

@ -255,31 +255,22 @@ public class AppDetailsRecyclerViewAdapter
vh.buttonPrimaryView.setEnabled(false);
} else if (!mCallbacks.isAppInstalled() && mApp.suggestedVersionCode > 0 && mVersions.size() > 0) {
// Check count > 0 due to incompatible apps resulting in an empty list.
// If App isn't installed
//installed = false;
//statusView.setText(R.string.details_notinstalled);
mCallbacks.disableAndroidBeam();
// Set Install button and hide second button
vh.buttonPrimaryView.setText(R.string.menu_install);
vh.buttonPrimaryView.setOnClickListener(mOnInstallClickListener);
vh.buttonPrimaryView.setEnabled(true);
} else if (mCallbacks.isAppInstalled()) {
// If App is installed
//installed = true;
//statusView.setText(getString(R.string.details_installed, app.installedVersionName));
mCallbacks.enableAndroidBeam();
if (mApp.canAndWantToUpdate(mContext)) {
//updateWanted = true;
vh.buttonPrimaryView.setText(R.string.menu_upgrade);
vh.buttonPrimaryView.setOnClickListener(mOnUpgradeClickListener);
} else {
//updateWanted = false;
if (mContext.getPackageManager().getLaunchIntentForPackage(mApp.packageName) != null) {
vh.buttonPrimaryView.setText(R.string.menu_launch);
vh.buttonPrimaryView.setOnClickListener(mOnLaunchClickListener);
} else {
vh.buttonPrimaryView.setVisibility(View.GONE);
//vh.buttonPrimaryView.setText(R.string.menu_uninstall);
}
}
vh.buttonPrimaryView.setEnabled(true);
@ -298,14 +289,6 @@ public class AppDetailsRecyclerViewAdapter
}
});
/*TextView currentVersion = (TextView) view.findViewById(R.id.current_version);
if (!appDetails.getApks().isEmpty()) {
currentVersion.setText(appDetails.getApks().getItem(0).versionName + " (" + app.license + ")");
} else {
currentVersion.setVisibility(View.GONE);
btMain.setVisibility(View.GONE);
}*/
} else if (viewType == VIEWTYPE_SCREENSHOTS) {
ScreenShotsViewHolder vh = (ScreenShotsViewHolder) holder;
LinearLayoutManager lm = new LinearLayoutManager(mContext, LinearLayoutManager.HORIZONTAL, false);