Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 32208e74 authored by yanglv's avatar yanglv
Browse files

DocumentUI: Add a toast to notify thumbnail limitation

If the device config as low ram device, thumbnail can not be
shown in DocumentUI when pick image from MMS.

Show a toast when enter DocumentUI if the device is limit to show
thumbnails.

Change-Id: Iaab4e2014dc4093ae9f795da4189799003606feb
CRs-Fixed: 646899
parent d2a3bc09
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -51,4 +51,5 @@
    <string name="toast_no_application" msgid="1339885974067891667">"无法打开文件"</string>
    <string name="toast_failed_delete" msgid="2180678019407244069">"无法删除部分文档"</string>
    <string name="share_via" msgid="8966594246261344259">"分享方式"</string>
    <string name="toast_not_show_thumbnail">"在低内存的设备上无法显示缩略图"</string>
</resources>
+1 −0
Original line number Diff line number Diff line
@@ -98,4 +98,5 @@
    <!-- Title of dialog when prompting user to select an app to share documents with [CHAR LIMIT=32] -->
    <string name="share_via">Share via</string>

    <string name="toast_not_show_thumbnail">Can not show thumbnail on low ram device.</string>
</resources>
+5 −0
Original line number Diff line number Diff line
@@ -321,6 +321,11 @@ public class DirectoryFragment extends Fragment {
        getLoaderManager().restartLoader(mLoaderId, null, mCallbacks);

        updateDisplayState();

        if (mSvelteRecents) {
            Toast.makeText(getActivity(), R.string.toast_not_show_thumbnail,
                    Toast.LENGTH_SHORT).show();
        }
    }

    @Override