Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c8ea328 authored by Stefan Niedermann's avatar Stefan Niedermann
Browse files

Fix a few lint warnings

parent 3a2516d5
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -99,6 +99,7 @@ dependencies {
    annotationProcessor "androidx.room:room-compiler:2.3.0"

    // Retrofit
    //noinspection GradleDependency
    implementation 'com.squareup.retrofit2:retrofit:2.6.4'

    // Gson
+0 −1
Original line number Diff line number Diff line
@@ -18,7 +18,6 @@
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name_long"
        android:networkSecurityConfig="@xml/network_security_config"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/AppTheme"
        tools:targetApi="n">
+1 −1
Original line number Diff line number Diff line
@@ -42,7 +42,7 @@ public class AppendToNoteActivity extends MainActivity {
                fullNote$.removeObservers(this);
                final String oldContent = fullNote.getContent();
                String newContent;
                if (oldContent != null && oldContent.length() > 0) {
                if (!TextUtils.isEmpty(oldContent)) {
                    newContent = oldContent + "\n\n" + receivedText;
                } else {
                    newContent = receivedText;
+2 −1
Original line number Diff line number Diff line
@@ -184,7 +184,8 @@ public class NoteEditFragment extends SearchableBaseNoteFragment {
     */
    @Override
    protected String getContent() {
        return binding.editContent.getText().toString();
        final Editable editable = binding.editContent.getText();
        return editable == null ? "" : editable.toString();
    }

    @Override
+1 −1
Original line number Diff line number Diff line
@@ -131,7 +131,7 @@ public class ImportAccountActivity extends AppCompatActivity {
                            } else if (t instanceof NetworkErrorException) {
                                binding.status.setText(getString(R.string.error_sync, getString(R.string.error_no_network)));
                                binding.status.setVisibility(View.VISIBLE);
                            } else if (t instanceof UnknownErrorException && t.getMessage().contains("No address associated with hostname")) {
                            } else if (t instanceof UnknownErrorException && t.getMessage() != null && t.getMessage().contains("No address associated with hostname")) {
                                // https://github.com/stefan-niedermann/nextcloud-notes/issues/1014
                                binding.status.setText(R.string.you_have_to_be_connected_to_the_internet_in_order_to_add_an_account);
                                binding.status.setVisibility(View.VISIBLE);
Loading