remove http:// or https:// prefix from url (in drawer)

This commit is contained in:
David Development 2016-08-28 23:29:20 +02:00
parent e50f2bf6b6
commit 219164ec8e

View file

@ -361,6 +361,7 @@ public class NewsReaderListFragment extends Fragment implements OnCreateContextM
SharedPreferences mPrefs = PreferenceManager.getDefaultSharedPreferences(getActivity());
String mUsername = mPrefs.getString(SettingsActivity.EDT_USERNAME_STRING, null);
String mOc_root_path = mPrefs.getString(SettingsActivity.EDT_OWNCLOUDROOTPATH_STRING, getString(R.string.app_name));
mOc_root_path = mOc_root_path.replace("http://", "").replace("https://", ""); //Remove http:// or https://
userTextView.setText(mUsername);
urlTextView.setText(mOc_root_path);