Преглед изворни кода

Merge pull request #4111 from nextcloud/ezaquarii/fix-crash-in-text-preview-fragment

Fix crash caused UserAccountManager dependency not being injected
Andy Scherzinger пре 5 година
родитељ
комит
81993eee19

+ 2 - 1
src/main/java/com/owncloud/android/ui/preview/PreviewTextFragment.java

@@ -37,6 +37,7 @@ import android.widget.RelativeLayout;
 import android.widget.TextView;
 
 import com.nextcloud.client.account.UserAccountManager;
+import com.nextcloud.client.di.Injectable;
 import com.owncloud.android.R;
 import com.owncloud.android.datamodel.OCFile;
 import com.owncloud.android.files.FileMenuFilter;
@@ -67,7 +68,7 @@ import androidx.annotation.NonNull;
 import androidx.appcompat.widget.SearchView;
 import androidx.core.view.MenuItemCompat;
 
-public class PreviewTextFragment extends FileFragment implements SearchView.OnQueryTextListener {
+public class PreviewTextFragment extends FileFragment implements SearchView.OnQueryTextListener, Injectable {
     private static final String EXTRA_FILE = "FILE";
     private static final String EXTRA_ACCOUNT = "ACCOUNT";
     private static final String TAG = PreviewTextFragment.class.getSimpleName();