Fix crash caused UserAccountManager dependency not being injected

Fixes #4107

Signed-off-by: Chris Narkiewicz <hello@ezaquarii.com>
This commit is contained in:
Chris Narkiewicz 2019-06-02 21:05:55 +01:00
parent 4a2a6862a2
commit 30af6a9efb
No known key found for this signature in database
GPG key ID: 30D28CA4CCC665C6

View file

@ -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();