Browse Source

Fixed warnings

main
M66B 6 years ago
parent
commit
a85797064a
8 changed files with 17 additions and 11 deletions
  1. BIN
      .idea/caches/build_file_checksums.ser
  2. +4
    -0
      app/build.gradle
  3. +1
    -1
      app/src/main/java/eu/faircode/email/DaoFolder.java
  4. +1
    -2
      app/src/main/java/eu/faircode/email/FragmentAccount.java
  5. +7
    -4
      app/src/main/java/eu/faircode/email/FragmentMessage.java
  6. +2
    -2
      app/src/main/java/eu/faircode/email/FragmentMessages.java
  7. +1
    -1
      app/src/main/res/layout/item_log.xml
  8. +1
    -1
      colorpicker

BIN
.idea/caches/build_file_checksums.ser View File


+ 4
- 0
app/build.gradle View File

@ -17,6 +17,10 @@ android {
}
}
lintOptions {
disable 'MissingTranslation'
}
buildTypes {
release {
debuggable = false


+ 1
- 1
app/src/main/java/eu/faircode/email/DaoFolder.java View File

@ -127,7 +127,7 @@ public interface DaoFolder {
", hide = :hide" +
", synchronize = :synchronize" +
", unified = :unified" +
", after = :after" +
", `after` = :after" +
" WHERE id = :id")
int setFolderProperties(long id, String name, String display, boolean hide, boolean synchronize, boolean unified, int after);


+ 1
- 2
app/src/main/java/eu/faircode/email/FragmentAccount.java View File

@ -34,7 +34,6 @@ import android.graphics.drawable.GradientDrawable;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.preference.PreferenceManager;
import android.text.Editable;
import android.text.Html;
import android.text.TextUtils;
@ -339,7 +338,7 @@ public class FragmentAccount extends FragmentEx {
btnColor.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (PreferenceManager.getDefaultSharedPreferences(getContext()).getBoolean("pro", false)) {
if (Helper.isPro(getContext())) {
int[] colors = getContext().getResources().getIntArray(R.array.colorPicker);
ColorPickerDialog colorPickerDialog = new ColorPickerDialog();
colorPickerDialog.initialize(R.string.title_account_color, colors, color, 4, colors.length);


+ 7
- 4
app/src/main/java/eu/faircode/email/FragmentMessage.java View File

@ -353,7 +353,7 @@ public class FragmentMessage extends FragmentEx {
grpHeader.setVisibility(View.GONE);
vSeparatorBody.setVisibility(View.GONE);
fab.setVisibility(View.GONE);
fab.hide();
grpThread.setVisibility(View.GONE);
grpAddresses.setVisibility(View.GONE);
@ -373,7 +373,7 @@ public class FragmentMessage extends FragmentEx {
grpHeader.setVisibility(View.VISIBLE);
vSeparatorBody.setVisibility(View.VISIBLE);
fab.setVisibility(View.VISIBLE);
fab.show();
RecyclerView.Adapter adapter = rvAttachment.getAdapter();
@ -425,7 +425,7 @@ public class FragmentMessage extends FragmentEx {
bottom_navigation.setVisibility(View.GONE);
grpThread.setVisibility(View.GONE);
grpError.setVisibility(View.GONE);
fab.setVisibility(View.GONE);
fab.hide();
pbWait.setVisibility(View.VISIBLE);
rvAttachment.setHasFixedSize(false);
@ -1241,7 +1241,10 @@ public class FragmentMessage extends FragmentEx {
tvBody.setText(body);
btnImages.setVisibility(has_images && !show_images ? View.VISIBLE : View.GONE);
grpMessage.setVisibility(View.VISIBLE);
fab.setVisibility(free ? View.GONE : View.VISIBLE);
if (free)
fab.hide();
else
fab.show();
pbBody.setVisibility(View.GONE);
}
};


+ 2
- 2
app/src/main/java/eu/faircode/email/FragmentMessages.java View File

@ -380,7 +380,7 @@ public class FragmentMessages extends FragmentEx {
tvNoEmail.setVisibility(View.GONE);
grpReady.setVisibility(View.GONE);
pbWait.setVisibility(View.VISIBLE);
fab.setVisibility(View.GONE);
fab.hide();
return view;
}
@ -494,7 +494,7 @@ public class FragmentMessages extends FragmentEx {
protected void onLoaded(Bundle args, Long account) {
if (account != null) {
fab.setTag(account);
fab.setVisibility(View.VISIBLE);
fab.show();
}
}


+ 1
- 1
app/src/main/res/layout/item_log.xml View File

@ -13,7 +13,7 @@
android:text="12:34:56"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@+id/ivEdit" />
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/tvData"


+ 1
- 1
colorpicker

@ -1 +1 @@
Subproject commit dc64bb476e4add2a3a042a3c426c4be0038f38e6
Subproject commit 48ef548ad518b1b09bf31443ade1d9ccafe8e24a

Loading…
Cancel
Save