Skip to content
Permalink
Browse files

Update hot swap patch

  • Loading branch information
Dazzozo committed Sep 27, 2013
1 parent e8a1cb7 commit 2b036170a0de00540b9ecf8249b5dac8436735a1
Showing with 7 additions and 8 deletions.
  1. +7 −8 patches/frameworks_opt_telephony/0001-modem-hot-swapping.patch
@@ -1,4 +1,4 @@
From 5f5fa7db19be061814776ef7ed335a3c32be1a2f Mon Sep 17 00:00:00 2001
From f645a5c9c7a70031def8410b9d43b22b14464715 Mon Sep 17 00:00:00 2001
From: Abhishek Adappa <aadappa@codeaurora.org>
Date: Wed, 17 Jul 2013 14:59:13 -0700
Subject: [PATCH] Don't display prompt when card inserted/removed
@@ -9,18 +9,17 @@ hot swapping.

Change-Id: I43fc95e61382671f61286818304ec58e922e8605
---
src/java/com/android/internal/telephony/uicc/UiccCard.java | 9 +++++++++
1 file changed, 9 insertions(+)
src/java/com/android/internal/telephony/uicc/UiccCard.java | 8 ++++++++
1 file changed, 8 insertions(+)

diff --git a/src/java/com/android/internal/telephony/uicc/UiccCard.java b/src/java/com/android/internal/telephony/uicc/UiccCard.java
index 7d63522..6989960 100644
index 329917e..6989960 100644
--- a/src/java/com/android/internal/telephony/uicc/UiccCard.java
+++ b/src/java/com/android/internal/telephony/uicc/UiccCard.java
@@ -228,6 +228,15 @@ public void unregisterForAbsent(Handler h) {
}
@@ -229,6 +229,14 @@ public class UiccCard {

private void onIccSwap(boolean isAdded) {
+
+ boolean isHotSwapSupported = mContext.getResources().getBoolean(
+ com.android.internal.R.bool.config_hotswapCapable);
+
@@ -33,5 +32,5 @@ index 7d63522..6989960 100644
// TODO: Here we assume the device can't handle SIM hot-swap
// and has to reboot. We may want to add a property,
--
1.8.4
1.8.1.2

0 comments on commit 2b03617

Please sign in to comment.
You can’t perform that action at this time.