Remove deprecated HttpClient.
Apache HttpClient package was removed from Android since api 23. Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
This commit is contained in:
parent
c0fe52b2b3
commit
ed78fce31c
|
@ -21,7 +21,6 @@ package org.moire.ultrasonic.service;
|
|||
import android.content.Context;
|
||||
import android.graphics.Bitmap;
|
||||
|
||||
import org.apache.http.HttpResponse;
|
||||
import org.moire.ultrasonic.domain.Bookmark;
|
||||
import org.moire.ultrasonic.domain.ChatMessage;
|
||||
import org.moire.ultrasonic.domain.Genre;
|
||||
|
|
|
@ -65,8 +65,6 @@ import org.moire.ultrasonic.receiver.MediaButtonIntentReceiver;
|
|||
import org.moire.ultrasonic.service.DownloadFile;
|
||||
import org.moire.ultrasonic.service.DownloadService;
|
||||
import org.moire.ultrasonic.service.DownloadServiceImpl;
|
||||
|
||||
import org.apache.http.HttpEntity;
|
||||
import org.moire.ultrasonic.service.MusicServiceFactory;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
|
@ -405,15 +403,6 @@ public class Util extends DownloadActivity
|
|||
return context.getSharedPreferences(Constants.PREFERENCES_FILE_NAME, 0);
|
||||
}
|
||||
|
||||
public static String getContentType(HttpEntity entity)
|
||||
{
|
||||
if (entity == null || entity.getContentType() == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
return entity.getContentType().getValue();
|
||||
}
|
||||
|
||||
public static int getRemainingTrialDays(Context context)
|
||||
{
|
||||
SharedPreferences preferences = getPreferences(context);
|
||||
|
|
Loading…
Reference in New Issue