mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-20 14:54:09 +00:00
Compare against existing Build.VERSION_CODES.
The 1.X Android versions don't have the 2.X VERSION_CODE symbols, so comparing against them in order to make 1.6 choices will throw runtime exceptions.
This commit is contained in:
@@ -33,7 +33,7 @@ import android.util.Log;
|
||||
public class MmsListener extends BroadcastReceiver {
|
||||
|
||||
private boolean isRelevent(Context context, Intent intent) {
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.ECLAIR)
|
||||
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.DONUT)
|
||||
return false;
|
||||
|
||||
if (PreferenceManager.getDefaultSharedPreferences(context).getBoolean(ApplicationPreferencesActivity.ALL_MMS_PERF, true))
|
||||
|
Reference in New Issue
Block a user