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

Commit 1c860be4 authored by emancebo's avatar emancebo
Browse files

Show message to user when toggling word wrap mode

For very large files toggling word wrap mode takes a long time on the UI
thread.  Show a message to the user so they know what is happening.

Change-Id: Idd3aed525233b944234b6f8864a9d3c02adc00b5
issue-id: QRDL-1080
parent bd4178a8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -846,5 +846,5 @@
    <string name="welcome_msg">Welcome to the CyanogenMod file manager.\n\nThis app allows you to explore the file system and do operations that could break your device. To prevent damage, the app will start in a safe, low-privileged mode.\n\nYou can access the advanced, full-privileged mode via Settings. It\'s your responsibility to ensure that an operation doesn\'t break your system.\n\nThe CyanogenMod Team</string>

    <string name="activity_not_found_exception">Couldn\'t find an app to open this file</string>

    <string name="toggle_word_wrap_msg">Toggling word wrap mode</string>
</resources>
+8 −1
Original line number Diff line number Diff line
@@ -934,7 +934,14 @@ public class EditorActivity extends Activity implements TextWatcher {
                        toggleNoSuggestions();
                        break;
                    case R.id.mnu_word_wrap:
                        DialogHelper.showToast(EditorActivity.this,
                                R.string.toggle_word_wrap_msg, Toast.LENGTH_SHORT);
                        mHandler.postDelayed(new Runnable() {
                            @Override
                            public void run() {
                                toggleWordWrap();
                            }
                        }, 50);
                        break;
                    case R.id.mnu_syntax_highlight:
                        toggleSyntaxHighlight();