Bug 674725 - Part R - Save sent messages in the Android database. r=cjones
This commit is contained in:
@@ -122,6 +122,7 @@ public class GeckoAppShell
|
||||
public static native void notifyBatteryChange(double aLevel, boolean aCharging, double aRemainingTime);
|
||||
|
||||
public static native void notifySmsReceived(String aSender, String aBody, long aTimestamp);
|
||||
public static native void onSmsSent(String aReceiver, String aBody, long aTimestamp);
|
||||
|
||||
// A looper thread, accessed by GeckoAppShell.getHandler
|
||||
private static class LooperThread extends Thread {
|
||||
@@ -1696,6 +1697,10 @@ public class GeckoAppShell
|
||||
GeckoSmsManager.send(aNumber, aMessage);
|
||||
}
|
||||
|
||||
public static int saveSentMessage(String aRecipient, String aBody, long aDate) {
|
||||
return GeckoSmsManager.saveSentMessage(aRecipient, aBody, aDate);
|
||||
}
|
||||
|
||||
public static boolean isTablet() {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD) {
|
||||
Configuration config = GeckoApp.mAppContext.getResources().getConfiguration();
|
||||
|
||||
Reference in New Issue
Block a user