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

Commit fa3c3f4f authored by Niedermann IT-Dienstleistungen's avatar Niedermann IT-Dienstleistungen
Browse files

#472 "Notes has stopped" on first run

Fix #472
parent 8d847628
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -372,7 +372,9 @@ public class NotesListViewActivity extends AppCompatActivity implements ItemAdap
        SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
        String username = preferences.getString(SettingsActivity.SETTINGS_USERNAME, SettingsActivity.DEFAULT_SETTINGS);
        String url = preferences.getString(SettingsActivity.SETTINGS_URL, SettingsActivity.DEFAULT_SETTINGS).replace("https://", "").replace("http://", "");
        if(!SettingsActivity.DEFAULT_SETTINGS.equals(username) && !SettingsActivity.DEFAULT_SETTINGS.equals(url)) {
            this.account.setText(username + "@" + url.substring(0, url.length() - 1));
        }
        final NotesListViewActivity that = this;
        this.account.setOnClickListener(new View.OnClickListener() {
            @Override