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

Commit 0b6eea3e authored by Christian Mehlmauer's avatar Christian Mehlmauer Committed by Steve Kondik
Browse files

Removed Calls to deprecated APIs and unused Imports

Change-Id: Ib26783ca1d6c345cc91aa3ab5b9654f5316c78a0
parent deee5e2b
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -23,13 +23,10 @@ import android.content.DialogInterface;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.os.Handler;
import android.os.IMountService;
import android.os.Message;
import android.os.RemoteException;
import android.os.ServiceManager;
import android.os.Environment;
import android.widget.Toast;
import android.util.Log;

/**
@@ -38,7 +35,7 @@ import android.util.Log;
 */
public class ExternalMediaFormatActivity extends AlertActivity implements DialogInterface.OnClickListener {

    private static final int POSITIVE_BUTTON = AlertDialog.BUTTON1;
    private static final int POSITIVE_BUTTON = AlertDialog.BUTTON_POSITIVE;

    /** Used to detect when the media state changes, in case we need to call finish() */
    private BroadcastReceiver mStorageReceiver = new BroadcastReceiver() {
+1 −1
Original line number Diff line number Diff line
@@ -223,7 +223,7 @@ public final class RingtonePickerActivity extends AlertActivity implements
     * On click of Ok/Cancel buttons
     */
    public void onClick(DialogInterface dialog, int which) {
        boolean positiveResult = which == BUTTON1;
        boolean positiveResult = which == DialogInterface.BUTTON_POSITIVE;
        
        // Stop playing the previous ringtone
        mRingtoneManager.stopPreviousRingtone();
+1 −3
Original line number Diff line number Diff line
@@ -23,9 +23,7 @@ import android.content.DialogInterface;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.os.Handler;
import android.os.IMountService;
import android.os.Message;
import android.os.RemoteException;
import android.os.ServiceManager;
import android.widget.Toast;
@@ -37,7 +35,7 @@ import android.widget.Toast;
 */
public class UsbStorageActivity extends AlertActivity implements DialogInterface.OnClickListener {

    private static final int POSITIVE_BUTTON = AlertDialog.BUTTON1;
    private static final int POSITIVE_BUTTON = AlertDialog.BUTTON_POSITIVE;

    /** Used to detect when the USB cable is unplugged, so we can call finish() */
    private BroadcastReceiver mBatteryReceiver = new BroadcastReceiver() {
+1 −3
Original line number Diff line number Diff line
@@ -23,9 +23,7 @@ import android.content.DialogInterface;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.os.Handler;
import android.os.IMountService;
import android.os.Message;
import android.os.RemoteException;
import android.os.ServiceManager;
import android.widget.Toast;
@@ -36,7 +34,7 @@ import android.widget.Toast;
 */
public class UsbStorageStopActivity extends AlertActivity implements DialogInterface.OnClickListener {

    private static final int POSITIVE_BUTTON = AlertDialog.BUTTON1;
    private static final int POSITIVE_BUTTON = AlertDialog.BUTTON_POSITIVE;

    /** Used to detect when the USB cable is unplugged, so we can call finish() */
    private BroadcastReceiver mBatteryReceiver = new BroadcastReceiver() {