Do not show 'open' when app update is available

This commit is contained in:
Mr. Dragon
2018-01-23 16:13:01 +05:30
parent a3c51a6e0c
commit be16246cb9

View File

@@ -20,7 +20,10 @@ public class ButtonRun extends Button {
@Override
protected android.widget.Button getButton() {
return (android.widget.Button) activity.findViewById(R.id.run);
if(activity.findViewById(R.id.download).getVisibility()==View.VISIBLE)
return null;
else
return (android.widget.Button) activity.findViewById(R.id.run);
}
@Override