Add "added" information to the Apk list in AppDetails if available
Just place it below the status for the time being until a more pleasing layout can be created.
This commit is contained in:
parent
d6015fe77c
commit
6d0b5d2d8e
@ -40,4 +40,11 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content" />
|
||||
|
||||
<TextView android:id="@+id/added"
|
||||
android:textSize="12sp"
|
||||
android:layout_below="@id/status"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
@ -117,8 +117,15 @@ public class AppDetails extends ListActivity {
|
||||
} else {
|
||||
buildtype.setText("bin");
|
||||
}
|
||||
TextView added = (TextView) v.findViewById(R.id.added);
|
||||
if (apk.added != null && !apk.added.equals("")) {
|
||||
added.setVisibility(View.VISIBLE);
|
||||
added.setText(apk.added);
|
||||
} else {
|
||||
added.setVisibility(View.GONE);
|
||||
}
|
||||
if (!compatChecker.isCompatible(apk)) {
|
||||
View[] views = { v, version, status, size, buildtype };
|
||||
View[] views = { v, version, status, size, buildtype, added };
|
||||
for (View view : views) {
|
||||
view.setEnabled(false);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user