Merge branch 'no-mb-on-header' into 'master'
Draft: remove APK size from header to free up space for repo menu See merge request fdroid/fdroidclient!1342
This commit is contained in:
commit
cce647049c
|
@ -13,7 +13,6 @@ import android.text.Spannable;
|
|||
import android.text.Spanned;
|
||||
import android.text.TextUtils;
|
||||
import android.text.format.DateFormat;
|
||||
import android.text.format.Formatter;
|
||||
import android.text.method.LinkMovementMethod;
|
||||
import android.text.style.URLSpan;
|
||||
import android.text.util.Linkify;
|
||||
|
@ -532,16 +531,7 @@ public class AppDetailsRecyclerViewAdapter
|
|||
}
|
||||
if (app.lastUpdated != null) {
|
||||
Resources res = lastUpdateView.getContext().getResources();
|
||||
String lastUpdated = Utils.formatLastUpdated(res, app.lastUpdated);
|
||||
String text;
|
||||
if (Preferences.get().expertMode() && suggestedApk != null && suggestedApk.apkFile != null
|
||||
&& suggestedApk.apkFile.getSize() != null) {
|
||||
String size = Formatter.formatFileSize(context, suggestedApk.apkFile.getSize());
|
||||
text = lastUpdated + " (" + size + ")";
|
||||
} else {
|
||||
text = lastUpdated;
|
||||
}
|
||||
lastUpdateView.setText(text);
|
||||
lastUpdateView.setText(Utils.formatLastUpdated(res, app.lastUpdated));
|
||||
lastUpdateView.setVisibility(View.VISIBLE);
|
||||
} else {
|
||||
lastUpdateView.setVisibility(View.GONE);
|
||||
|
|
Loading…
Reference in New Issue