Bug 674725 - Part AF - Implement delete() on Android. r=cjones

This commit is contained in:
Mounir Lamouri
2011-12-22 23:15:28 +01:00
parent a8ab07298e
commit 54d6e87e8b
14 changed files with 159 additions and 8 deletions

View File

@@ -128,6 +128,7 @@ public class GeckoAppShell
public static native void notifySmsSendFailed(int aError, int aRequestId, long aProcessId);
public static native void notifyGetSms(int aId, String aReceiver, String aSender, String aBody, long aTimestamp, int aRequestId, long aProcessId);
public static native void notifyGetSmsFailed(int aError, int aRequestId, long aProcessId);
public static native void notifySmsDeleted(boolean aDeleted, int aRequestId, long aProcessId);
// A looper thread, accessed by GeckoAppShell.getHandler
private static class LooperThread extends Thread {
@@ -1710,6 +1711,10 @@ public class GeckoAppShell
GeckoSmsManager.getMessage(aMessageId, aRequestId, aProcessId);
}
public static void deleteMessage(int aMessageId, int aRequestId, long aProcessId) {
GeckoSmsManager.deleteMessage(aMessageId, aRequestId, aProcessId);
}
public static boolean isTablet() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD) {
Configuration config = GeckoApp.mAppContext.getResources().getConfiguration();