mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 19:52:17 -05:00
Fixed some more warnings:
- Removed unused imports - Removed unnecessary @SuppressWarnings("deprecation") annotations - Added @SuppressWarnings("deprecation") to API 1-3 code that's now (API 5) deprecated - Added missing @Override annotation
This commit is contained in:
parent
26bd72573e
commit
b5a6a28f19
@ -38,7 +38,6 @@ public abstract class EmailAddressAdapter extends ResourceCursorAdapter
|
||||
* Check the version of the SDK we are running on. Choose an
|
||||
* implementation class designed for that version of the SDK.
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
int sdkVersion = Integer.parseInt(Build.VERSION.SDK); // Cupcake style
|
||||
if (sdkVersion < Build.VERSION_CODES.ECLAIR)
|
||||
{
|
||||
|
@ -27,6 +27,7 @@ import com.fsck.k9.mail.Address;
|
||||
|
||||
import static android.provider.Contacts.ContactMethods.CONTENT_EMAIL_URI;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class EmailAddressAdapterSdk3_4 extends EmailAddressAdapter
|
||||
{
|
||||
public static final int NAME_INDEX = 1;
|
||||
|
@ -17,7 +17,6 @@
|
||||
package com.fsck.k9.activity;
|
||||
|
||||
import com.fsck.k9.R;
|
||||
import com.fsck.k9.R.string;
|
||||
import android.os.Bundle;
|
||||
import android.app.Dialog;
|
||||
|
||||
|
@ -9,7 +9,6 @@ import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
import android.os.Handler;
|
||||
import android.os.PowerManager;
|
||||
import android.os.PowerManager.WakeLock;
|
||||
import android.util.Config;
|
||||
import android.util.Log;
|
||||
import android.util.TypedValue;
|
||||
|
@ -73,6 +73,7 @@ public class SpinnerHelper
|
||||
this.entry = entry;
|
||||
this.value = value;
|
||||
}
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
return entry;
|
||||
|
@ -46,7 +46,6 @@ public class AutoSyncHelper
|
||||
* Check the version of the SDK we are running on. Choose an
|
||||
* implementation class designed for that version of the SDK.
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
int sdkVersion = Integer.parseInt(Build.VERSION.SDK);
|
||||
|
||||
String className = null;
|
||||
|
Loading…
Reference in New Issue
Block a user