Disable special screen reader mode on ICS
The default message view is accessible enough. Info and original patch provided by Nolan Darilek. See issue 4153
This commit is contained in:
parent
10f278f579
commit
ee1288ee75
1 changed files with 4 additions and 1 deletions
|
@ -8,6 +8,7 @@ import android.content.pm.ResolveInfo;
|
||||||
import android.database.Cursor;
|
import android.database.Cursor;
|
||||||
import android.net.Uri;
|
import android.net.Uri;
|
||||||
import android.os.AsyncTask;
|
import android.os.AsyncTask;
|
||||||
|
import android.os.Build;
|
||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
import android.util.AttributeSet;
|
import android.util.AttributeSet;
|
||||||
|
@ -140,7 +141,9 @@ public class SingleMessageView extends LinearLayout implements OnClickListener,
|
||||||
mDownloadRemainder = (Button) findViewById(R.id.download_remainder);
|
mDownloadRemainder = (Button) findViewById(R.id.download_remainder);
|
||||||
mDownloadRemainder.setVisibility(View.GONE);
|
mDownloadRemainder.setVisibility(View.GONE);
|
||||||
mAttachmentsContainer.setVisibility(View.GONE);
|
mAttachmentsContainer.setVisibility(View.GONE);
|
||||||
if (isScreenReaderActive(activity)) {
|
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.ICE_CREAM_SANDWICH &&
|
||||||
|
isScreenReaderActive(activity)) {
|
||||||
|
// Only use the special screen reader mode on pre-ICS devices with active screen reader
|
||||||
mAccessibleMessageContentView.setVisibility(View.VISIBLE);
|
mAccessibleMessageContentView.setVisibility(View.VISIBLE);
|
||||||
mMessageContentView.setVisibility(View.GONE);
|
mMessageContentView.setVisibility(View.GONE);
|
||||||
mScreenReaderEnabled = true;
|
mScreenReaderEnabled = true;
|
||||||
|
|
Loading…
Reference in a new issue