when sms pref changes, clear cached value

This commit is contained in:
Eric House 2014-09-16 06:39:46 -07:00
parent 82b25d1956
commit 3e72da8e3f
2 changed files with 6 additions and 0 deletions

View file

@ -191,6 +191,7 @@ public class PrefsDelegate extends DelegateBase
((CheckBoxPreference)(m_activity.findPreference( key )))
.setChecked( false );
}
Utils.smsSupportChanged();
} else if ( key.equals( m_downloadPath ) ) {
String value = sp.getString( key, null );
if ( null != value ) {

View file

@ -141,6 +141,11 @@ public class Utils {
return s_deviceSupportSMS;
}
public static void smsSupportChanged()
{
s_deviceSupportSMS = null; // force to check again
}
public static void notImpl( Context context )
{
String text = "Feature coming soon";