diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2010-05-18 09:21:28 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-05-18 09:21:28 -0700 |
commit | 400907086ac1a304daa50a72013ac27a9c63b26b (patch) | |
tree | d125be408b144aa284e247d3815be768fddc51dd /core | |
parent | 8473259ddb693e4c41e8ec4313466351ff5b92f7 (diff) | |
parent | 4547e5284e79192373f3a6bb6c452501171bc1d6 (diff) | |
download | frameworks_base-400907086ac1a304daa50a72013ac27a9c63b26b.zip frameworks_base-400907086ac1a304daa50a72013ac27a9c63b26b.tar.gz frameworks_base-400907086ac1a304daa50a72013ac27a9c63b26b.tar.bz2 |
am 4547e528: merge from open-source master
Merge commit '4547e5284e79192373f3a6bb6c452501171bc1d6' into kraken
* commit '4547e5284e79192373f3a6bb6c452501171bc1d6':
Removed Calls to deprecated APIs and unused Imports
Diffstat (limited to 'core')
-rw-r--r-- | core/java/com/android/internal/app/ExternalMediaFormatActivity.java | 5 | ||||
-rw-r--r-- | core/java/com/android/internal/app/RingtonePickerActivity.java | 2 |
2 files changed, 2 insertions, 5 deletions
diff --git a/core/java/com/android/internal/app/ExternalMediaFormatActivity.java b/core/java/com/android/internal/app/ExternalMediaFormatActivity.java index 7e9bbd1..98dcb8b 100644 --- a/core/java/com/android/internal/app/ExternalMediaFormatActivity.java +++ b/core/java/com/android/internal/app/ExternalMediaFormatActivity.java @@ -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.storage.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() { diff --git a/core/java/com/android/internal/app/RingtonePickerActivity.java b/core/java/com/android/internal/app/RingtonePickerActivity.java index ddddabe..5569ffe 100644 --- a/core/java/com/android/internal/app/RingtonePickerActivity.java +++ b/core/java/com/android/internal/app/RingtonePickerActivity.java @@ -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(); |