Compare commits

..

No commits in common. 'c722e6f04ab5777b34a0e2f59374a6a85503a1f1' and 'ea882f27f3fbaa51e174e0aeaf9025b984739b61' have entirely different histories.

File diff suppressed because it is too large Load Diff

@ -29,11 +29,9 @@ import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.graphics.Rect;
import android.graphics.Typeface;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.provider.Settings;
@ -72,8 +70,6 @@ import androidx.recyclerview.widget.DiffUtil;
import androidx.recyclerview.widget.ListUpdateCallback;
import androidx.recyclerview.widget.RecyclerView;
import java.io.FileNotFoundException;
import java.io.InputStream;
import java.text.DateFormat;
import java.text.NumberFormat;
import java.util.ArrayList;
@ -98,7 +94,6 @@ public class AdapterAccount extends RecyclerView.Adapter<AdapterAccount.ViewHold
private boolean show_unexposed;
private boolean debug;
private boolean hasAvatars = false;
private List<TupleAccountFolder> all = new ArrayList<>();
private List<TupleAccountFolder> items = new ArrayList<>();
@ -108,7 +103,6 @@ public class AdapterAccount extends RecyclerView.Adapter<AdapterAccount.ViewHold
public class ViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener, View.OnLongClickListener {
private View view;
private View vwColor;
private ImageView ivAvatar;
private ImageView ivOAuth;
private ImageView ivPrimary;
private ImageView ivNotify;
@ -141,7 +135,6 @@ public class AdapterAccount extends RecyclerView.Adapter<AdapterAccount.ViewHold
view = itemView.findViewById(R.id.clItem);
vwColor = itemView.findViewById(R.id.vwColor);
ivAvatar = itemView.findViewById(R.id.ivAvatar);
ivSync = itemView.findViewById(R.id.ivSync);
ibInbox = itemView.findViewById(R.id.ibInbox);
ivOAuth = itemView.findViewById(R.id.ivOAuth);
@ -217,43 +210,6 @@ public class AdapterAccount extends RecyclerView.Adapter<AdapterAccount.ViewHold
vwColor.setBackgroundColor(account.color == null ? Color.TRANSPARENT : account.color);
vwColor.setVisibility(ActivityBilling.isPro(context) ? View.VISIBLE : View.INVISIBLE);
if (account.avatar == null)
ivAvatar.setVisibility(hasAvatars ? View.INVISIBLE : View.GONE);
else {
Bundle args = new Bundle();
args.putString("avatar", account.avatar);
new SimpleTask<Bitmap>() {
@Override
protected Bitmap onExecute(Context context, Bundle args) throws Throwable {
String avatar = args.getString("avatar");
Uri uri = Uri.parse(avatar);
Bitmap bm;
int scaleToPixels = Helper.dp2pixels(context, ContactInfo.AVATAR_SIZE);
try (InputStream is = context.getContentResolver().openInputStream(uri)) {
if (is == null)
throw new FileNotFoundException(uri.toString());
bm = ImageHelper.getScaledBitmap(is, avatar, null, scaleToPixels);
if (bm == null)
throw new FileNotFoundException(avatar);
return bm;
}
}
@Override
protected void onExecuted(Bundle args, Bitmap bitmap) {
ivAvatar.setImageBitmap(bitmap);
ivAvatar.setVisibility(View.VISIBLE);
}
@Override
protected void onException(Bundle args, Throwable ex) {
Log.w(ex);
ivAvatar.setVisibility(hasAvatars ? View.INVISIBLE : View.GONE);
}
}.execute(context, owner, args, "account:avatar");
}
ivSync.setImageResource(account.synchronize ? R.drawable.twotone_sync_24 : R.drawable.twotone_sync_disabled_24);
ivSync.setContentDescription(context.getString(account.synchronize ? R.string.title_legend_synchronize_on : R.string.title_legend_synchronize_off));
ivSync.setVisibility(View.VISIBLE);
@ -384,8 +340,6 @@ public class AdapterAccount extends RecyclerView.Adapter<AdapterAccount.ViewHold
vwColor.setBackgroundColor(account.folderColor == null ? Color.TRANSPARENT : account.folderColor);
vwColor.setVisibility(ActivityBilling.isPro(context) ? View.VISIBLE : View.INVISIBLE);
ivAvatar.setVisibility(View.GONE);
ivSync.setVisibility(View.GONE);
ivOAuth.setVisibility(View.GONE);
@ -1005,13 +959,6 @@ public class AdapterAccount extends RecyclerView.Adapter<AdapterAccount.ViewHold
DiffUtil.DiffResult diff = DiffUtil.calculateDiff(new DiffCallback(items, filtered), false);
hasAvatars = false;
for (TupleAccountFolder account : accounts)
if (account.avatar != null) {
hasAvatars = true;
break;
}
items = filtered;
diff.dispatchUpdatesTo(new ListUpdateCallback() {

@ -111,8 +111,6 @@ public class ContactInfo {
private static final long CACHE_FAVICON_DURATION = 2 * 7 * 24 * 60 * 60 * 1000L; // milliseconds
private static final float MIN_FAVICON_LUMINANCE = 0.2f;
static final int AVATAR_SIZE = FAVICON_ICON_SIZE;
// https://realfavicongenerator.net/faq
private static final String[] FIXED_FAVICONS = new String[]{
"apple-touch-icon.png", // 57x57

@ -70,7 +70,7 @@ import javax.mail.internet.InternetAddress;
// https://developer.android.com/topic/libraries/architecture/room.html
@Database(
version = 297,
version = 296,
entities = {
EntityIdentity.class,
EntityAccount.class,
@ -3019,17 +3019,6 @@ public abstract class DB extends RoomDatabase {
logMigration(startVersion, endVersion);
db.execSQL("UPDATE `identity` SET `use_ip` = 0 WHERE host = 'sslout.df.eu'");
}
}).addMigrations(new Migration(296, 297) {
@Override
public void migrate(@NonNull SupportSQLiteDatabase db) {
logMigration(startVersion, endVersion);
db.execSQL("UPDATE `account` SET `prefix` = NULL");
}
}).addMigrations(new Migration(297, 296) {
@Override
public void migrate(@NonNull SupportSQLiteDatabase db) {
logMigration(startVersion, endVersion);
}
}).addMigrations(new Migration(998, 999) {
@Override
public void migrate(@NonNull SupportSQLiteDatabase db) {

@ -103,8 +103,6 @@ public class EntityAccount extends EntityOrder implements Serializable {
public String category;
public String signature; // obsolete
public Integer color;
@ColumnInfo(name = "prefix")
public String avatar;
public String calendar;
@NonNull
@ -157,6 +155,7 @@ public class EntityAccount extends EntityOrder implements Serializable {
public Boolean use_date = false; // Date header
@NonNull
public Boolean use_received = false; // Received header
public String prefix; // namespace, obsolete
@NonNull
public Boolean unicode = false;
@ -483,7 +482,6 @@ public class EntityAccount extends EntityOrder implements Serializable {
Objects.equals(a1.category, other.category) &&
// signature
Objects.equals(a1.color, other.color) &&
Objects.equals(a1.avatar, other.avatar) &&
Objects.equals(a1.calendar, other.calendar) &&
a1.synchronize.equals(other.synchronize) &&
Objects.equals(a1.ondemand, other.ondemand) &&
@ -511,6 +509,7 @@ public class EntityAccount extends EntityOrder implements Serializable {
a1.ignore_size == other.ignore_size &&
a1.use_date == other.use_date &&
a1.use_received == other.use_received &&
// prefix
a1.unicode == other.unicode &&
Objects.equals(a1.conditions, other.conditions) &&
(!state || Objects.equals(a1.quota_usage, other.quota_usage)) &&

@ -115,9 +115,6 @@ public class FragmentAccount extends FragmentBase {
private ViewButtonColor btnColor;
private TextView tvColorPro;
private Button btnAvatar;
private TextView tvAvatarPro;
private Button btnCalendar;
private TextView tvCalendarPro;
@ -182,16 +179,14 @@ public class FragmentAccount extends FragmentBase {
private long copy = -1;
private int auth = AUTH_TYPE_PASSWORD;
private String provider = null;
private String avatar = null;
private String calendar = null;
private String certificate = null;
private boolean saving = false;
private static final int REQUEST_COLOR = 1;
private static final int REQUEST_AVATAR = 2;
private static final int REQUEST_CALENDAR = 3;
private static final int REQUEST_SAVE = 4;
private static final int REQUEST_DELETE = 5;
private static final int REQUEST_CALENDAR = 2;
private static final int REQUEST_SAVE = 3;
private static final int REQUEST_DELETE = 4;
@Override
public void onCreate(Bundle savedInstanceState) {
@ -242,9 +237,6 @@ public class FragmentAccount extends FragmentBase {
btnColor = view.findViewById(R.id.btnColor);
tvColorPro = view.findViewById(R.id.tvColorPro);
btnAvatar = view.findViewById(R.id.btnAvatar);
tvAvatarPro = view.findViewById(R.id.tvAvatarPro);
btnCalendar = view.findViewById(R.id.btnCalendar);
tvCalendarPro = view.findViewById(R.id.tvCalendarPro);
@ -470,21 +462,6 @@ public class FragmentAccount extends FragmentBase {
Helper.linkPro(tvColorPro);
btnAvatar.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT);
intent.addCategory(Intent.CATEGORY_OPENABLE);
intent.addFlags(Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION);
intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
intent.setType("image/*");
Helper.openAdvanced(v.getContext(), intent);
startActivityForResult(intent, REQUEST_AVATAR);
}
});
Helper.linkPro(tvAvatarPro);
btnCalendar.setEnabled(Helper.hasPermission(getContext(), Manifest.permission.WRITE_CALENDAR));
btnCalendar.setOnClickListener(new View.OnClickListener() {
@Override
@ -974,7 +951,6 @@ public class FragmentAccount extends FragmentBase {
args.putString("name", etName.getText().toString());
args.putString("category", etCategory.getText().toString());
args.putInt("color", btnColor.getColor());
args.putString("avatar", avatar);
args.putString("calendar", calendar);
args.putBoolean("synchronize", cbSynchronize.isChecked());
@ -1054,7 +1030,6 @@ public class FragmentAccount extends FragmentBase {
String name = args.getString("name");
String category = args.getString("category");
Integer color = args.getInt("color");
String avatar = args.getString("avatar");
String calendar = args.getString("calendar");
boolean synchronize = args.getBoolean("synchronize");
@ -1163,8 +1138,6 @@ public class FragmentAccount extends FragmentBase {
return true;
if (!Objects.equals(account.color, color))
return true;
if (!Objects.equals(account.avatar, avatar))
return true;
if (!Objects.equals(account.calendar, calendar))
return true;
if (!Objects.equals(account.synchronize, synchronize))
@ -1320,7 +1293,6 @@ public class FragmentAccount extends FragmentBase {
account.name = name;
account.category = category;
account.color = color;
account.avatar = avatar;
account.calendar = calendar;
account.synchronize = synchronize;
@ -1605,7 +1577,6 @@ public class FragmentAccount extends FragmentBase {
outState.putInt("fair:advanced", grpAdvanced == null ? View.VISIBLE : grpAdvanced.getVisibility());
outState.putInt("fair:auth", auth);
outState.putString("fair:authprovider", provider);
outState.putString("fair:avatar", avatar);
outState.putString("fair:calendar", calendar);
super.onSaveInstanceState(outState);
}
@ -1779,7 +1750,6 @@ public class FragmentAccount extends FragmentBase {
auth = (account == null ? AUTH_TYPE_PASSWORD : account.auth_type);
provider = (account == null ? null : account.provider);
avatar = (account == null ? null : account.avatar);
calendar = (account == null ? null : account.calendar);
new SimpleTask<EntityAccount>() {
@ -1811,7 +1781,6 @@ public class FragmentAccount extends FragmentBase {
grpAdvanced.setVisibility(savedInstanceState.getInt("fair:advanced"));
auth = savedInstanceState.getInt("fair:auth");
provider = savedInstanceState.getString("fair:authprovider");
avatar = savedInstanceState.getString("fair:avatar");
calendar = savedInstanceState.getString("fair:calendar");
}
@ -2008,12 +1977,6 @@ public class FragmentAccount extends FragmentBase {
startActivity(new Intent(getContext(), ActivityBilling.class));
}
break;
case REQUEST_AVATAR:
if (resultCode == RESULT_OK && data != null)
onImageSelected(data.getData());
else
avatar = null;
break;
case REQUEST_CALENDAR:
if (resultCode == RESULT_OK && data != null) {
if (ActivityBilling.isPro(getContext())) {
@ -2056,23 +2019,6 @@ public class FragmentAccount extends FragmentBase {
}
}
private void onImageSelected(Uri uri) {
try {
final Context context = getContext();
NoStreamException.check(uri, context);
context.getContentResolver().takePersistableUriPermission(uri, Intent.FLAG_GRANT_READ_URI_PERMISSION);
if (!Helper.isPersisted(context, uri, true, false))
throw new IllegalStateException("No permission granted to access selected image " + uri);
avatar = uri.toString();
} catch (NoStreamException ex) {
ex.report(getActivity());
} catch (Throwable ex) {
Log.unexpectedError(getParentFragmentManager(), ex);
}
}
private void onDelete() {
Bundle args = new Bundle();
args.putLong("id", id);

@ -29,7 +29,6 @@ import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.Paint;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.text.Editable;
@ -90,9 +89,6 @@ public class FragmentPop extends FragmentBase {
private ViewButtonColor btnColor;
private TextView tvColorPro;
private Button btnAvatar;
private TextView tvAvatarPro;
private Button btnCalendar;
private TextView tvCalendarPro;
@ -130,15 +126,13 @@ public class FragmentPop extends FragmentBase {
private long id = -1;
private int auth = AUTH_TYPE_PASSWORD;
private String avatar = null;
private String calendar = null;
private boolean saving = false;
private static final int REQUEST_COLOR = 1;
private static final int REQUEST_AVATAR = 2;
private static final int REQUEST_CALENDAR = 3;
private static final int REQUEST_SAVE = 4;
private static final int REQUEST_DELETE = 5;
private static final int REQUEST_CALENDAR = 2;
private static final int REQUEST_SAVE = 3;
private static final int REQUEST_DELETE = 4;
@Override
public void onCreate(Bundle savedInstanceState) {
@ -175,9 +169,6 @@ public class FragmentPop extends FragmentBase {
btnColor = view.findViewById(R.id.btnColor);
tvColorPro = view.findViewById(R.id.tvColorPro);
btnAvatar = view.findViewById(R.id.btnAvatar);
tvAvatarPro = view.findViewById(R.id.tvAvatarPro);
btnCalendar = view.findViewById(R.id.btnCalendar);
tvCalendarPro = view.findViewById(R.id.tvCalendarPro);
@ -290,21 +281,6 @@ public class FragmentPop extends FragmentBase {
Helper.linkPro(tvColorPro);
btnAvatar.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT);
intent.addCategory(Intent.CATEGORY_OPENABLE);
intent.addFlags(Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION);
intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
intent.setType("image/*");
Helper.openAdvanced(v.getContext(), intent);
startActivityForResult(intent, REQUEST_AVATAR);
}
});
Helper.linkPro(tvAvatarPro);
grpCalendar.setVisibility(BuildConfig.PLAY_STORE_RELEASE ? View.GONE : View.VISIBLE);
btnCalendar.setEnabled(Helper.hasPermission(getContext(), Manifest.permission.WRITE_CALENDAR));
btnCalendar.setOnClickListener(new View.OnClickListener() {
@ -438,7 +414,6 @@ public class FragmentPop extends FragmentBase {
args.putString("name", etName.getText().toString());
args.putString("category", etCategory.getText().toString());
args.putInt("color", btnColor.getColor());
args.putString("avatar", avatar);
args.putString("calendar", calendar);
args.putBoolean("synchronize", cbSynchronize.isChecked());
@ -498,7 +473,6 @@ public class FragmentPop extends FragmentBase {
String name = args.getString("name");
String category = args.getString("category");
Integer color = args.getInt("color");
String avatar = args.getString("avatar");
String calendar = args.getString("calendar");
boolean synchronize = args.getBoolean("synchronize");
@ -592,8 +566,6 @@ public class FragmentPop extends FragmentBase {
return true;
if (!Objects.equals(account.color, color))
return true;
if (!Objects.equals(account.avatar, avatar))
return true;
if (!Objects.equals(account.calendar, calendar))
return true;
if (!Objects.equals(account.synchronize, synchronize))
@ -697,7 +669,6 @@ public class FragmentPop extends FragmentBase {
account.name = name;
account.category = category;
account.color = color;
account.avatar = avatar;
account.calendar = calendar;
account.synchronize = synchronize;
@ -845,7 +816,6 @@ public class FragmentPop extends FragmentBase {
public void onSaveInstanceState(Bundle outState) {
outState.putString("fair:password", tilPassword == null ? null : tilPassword.getEditText().getText().toString());
outState.putInt("fair:auth", auth);
outState.putString("fair:avatar", avatar);
outState.putString("fair:calendar", calendar);
super.onSaveInstanceState(outState);
}
@ -951,7 +921,6 @@ public class FragmentPop extends FragmentBase {
}
auth = (account == null ? AUTH_TYPE_PASSWORD : account.auth_type);
avatar = (account == null ? null : account.avatar);
calendar = (account == null ? null : account.calendar);
new SimpleTask<EntityAccount>() {
@ -974,7 +943,6 @@ public class FragmentPop extends FragmentBase {
} else {
tilPassword.getEditText().setText(savedInstanceState.getString("fair:password"));
auth = savedInstanceState.getInt("fair:auth");
avatar = savedInstanceState.getString("fair:avatar");
calendar = savedInstanceState.getString("fair:calendar");
}
@ -1049,12 +1017,6 @@ public class FragmentPop extends FragmentBase {
startActivity(new Intent(getContext(), ActivityBilling.class));
}
break;
case REQUEST_AVATAR:
if (resultCode == RESULT_OK && data != null)
onImageSelected(data.getData());
else
avatar = null;
break;
case REQUEST_CALENDAR:
if (resultCode == RESULT_OK && data != null) {
if (ActivityBilling.isPro(getContext())) {
@ -1093,23 +1055,6 @@ public class FragmentPop extends FragmentBase {
}
}
private void onImageSelected(Uri uri) {
try {
final Context context = getContext();
NoStreamException.check(uri, context);
context.getContentResolver().takePersistableUriPermission(uri, Intent.FLAG_GRANT_READ_URI_PERMISSION);
if (!Helper.isPersisted(context, uri, true, false))
throw new IllegalStateException("No permission granted to access selected image " + uri);
avatar = uri.toString();
} catch (NoStreamException ex) {
ex.report(getActivity());
} catch (Throwable ex) {
Log.unexpectedError(getParentFragmentManager(), ex);
}
}
private void onDelete() {
Bundle args = new Bundle();
args.putLong("id", id);

@ -536,38 +536,6 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvColorHint" />
<TextView
android:id="@+id/tvAvatar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:text="@string/title_avatar"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvColorPro" />
<Button
android:id="@+id/btnAvatar"
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableEnd="@drawable/twotone_image_24"
android:drawablePadding="6dp"
android:text="@string/title_select"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvAvatar" />
<TextView
android:id="@+id/tvAvatarPro"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
android:text="@string/title_pro_feature"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="?android:attr/textColorLink"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/btnAvatar" />
<TextView
android:id="@+id/tvCalendar"
android:layout_width="wrap_content"
@ -576,7 +544,7 @@
android:text="@string/title_calendar"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvAvatarPro" />
app:layout_constraintTop_toBottomOf="@id/tvColorPro" />
<Button
android:id="@+id/btnCalendar"
@ -1292,8 +1260,7 @@
btnCertificate,tvCertificate,
tvRealm,etRealm,
tvName,tvNameRemark,etName,tvCategory,etCategory,
tvColor,btnColor,tvColorHint,tvColorPro,
tvAvatar,btnAvatar,tvAvatarPro" />
tvColor,btnColor,tvColorHint,tvColorPro" />
<androidx.constraintlayout.widget.Group
android:id="@+id/grpCalendar"

@ -418,38 +418,6 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvColorHint" />
<TextView
android:id="@+id/tvAvatar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:text="@string/title_avatar"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvColorPro" />
<Button
android:id="@+id/btnAvatar"
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableEnd="@drawable/twotone_image_24"
android:drawablePadding="6dp"
android:text="@string/title_select"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvAvatar" />
<TextView
android:id="@+id/tvAvatarPro"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
android:text="@string/title_pro_feature"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="?android:attr/textColorLink"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/btnAvatar" />
<TextView
android:id="@+id/tvCalendar"
android:layout_width="wrap_content"
@ -458,7 +426,7 @@
android:text="@string/title_calendar"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvAvatarPro" />
app:layout_constraintTop_toBottomOf="@id/tvColorPro" />
<Button
android:id="@+id/btnCalendar"

@ -32,20 +32,6 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<ImageView
android:id="@+id/ivAvatar"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginStart="6dp"
android:contentDescription="@string/title_legend_avatar"
android:padding="3dp"
android:scaleType="centerCrop"
app:layout_constraintBottom_toBottomOf="@+id/tvUser"
app:layout_constraintDimensionRatio="1:1"
app:layout_constraintStart_toEndOf="@id/vwColor"
app:layout_constraintTop_toTopOf="@+id/tvName"
app:srcCompat="@drawable/twotone_person_24" />
<ImageView
android:id="@+id/ivState"
android:layout_width="24dp"
@ -54,7 +40,7 @@
android:layout_marginEnd="6dp"
android:contentDescription="@string/title_legend_disconnected"
app:layout_constraintBottom_toBottomOf="@+id/tvName"
app:layout_constraintStart_toEndOf="@id/ivAvatar"
app:layout_constraintStart_toEndOf="@id/vwColor"
app:layout_constraintTop_toTopOf="@+id/tvName"
app:srcCompat="@drawable/twotone_cloud_off_24" />
@ -219,11 +205,11 @@
android:layout_marginStart="6dp"
android:layout_marginEnd="6dp"
android:drawablePadding="6dp"
app:drawableTint="?attr/colorWarning"
android:ellipsize="start"
android:singleLine="true"
android:text="123/456 MB"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:drawableTint="?attr/colorWarning"
app:layout_constraintEnd_toStartOf="@+id/tvMaxSize"
app:layout_constraintStart_toEndOf="@+id/ivState"
app:layout_constraintTop_toBottomOf="@id/tvBackoff" />
@ -342,10 +328,10 @@
android:backgroundTint="?attr/colorInfoBackground"
android:drawableEnd="@drawable/twotone_help_24"
android:drawablePadding="6dp"
app:drawableTint="?attr/colorInfoForeground"
android:text="@string/title_setup_help"
android:textColor="?attr/colorInfoForeground"
android:textStyle="bold"
app:drawableTint="?attr/colorInfoForeground"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvError" />

@ -1224,7 +1224,6 @@
<string name="title_account_partial_fetch_hint">Disable this only in case of empty messages or corrupt attachments</string>
<string name="title_account_raw_fetch_hint">Enabling this will increase battery and data usage</string>
<string name="title_color">Color</string>
<string name="title_avatar">Image</string>
<string name="title_calendar">Calendar</string>
<string name="title_background">Background</string>
<string name="title_transparent">Transparent</string>

Loading…
Cancel
Save