Skip to content

Commit 022d41d

Browse files
authored
Merge pull request #1969 from owncloud/release_2.4.0
Release 2.4.0
2 parents 20e1410 + e00a7e7 commit 022d41d

File tree

7 files changed

+37
-11
lines changed

7 files changed

+37
-11
lines changed

AndroidManifest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
-->
1919
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2020
package="com.owncloud.android"
21-
android:versionCode="20300000"
22-
android:versionName="2.3.0">
21+
android:versionCode="20400000"
22+
android:versionName="2.4.0">
2323

2424
<uses-sdk
2525
android:minSdkVersion="14"

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
## 2.4.0 (May 2017)
2+
- Video streaming
3+
- Multiple public links per file (OC X required)
4+
- Share with custom groups (OC X required)
5+
- Share plain text
6+
- UI improvements:
7+
- Section file count in uploads view
8+
- Edit dialog margin
9+
- Bugs fixed, including:
10+
- Interrupted uploads and downloads due to Doze in Android 6 and 7
11+
- App is minimized with drawer button in tablets
12+
113
## 2.3.0 (March 2017)
214
- Included privacy policy.
315
- Error messages improvement.

oc_jb_workaround/AndroidManifest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
33
package="com.owncloud.android.workaround.accounts"
4-
android:versionCode="0100034"
5-
android:versionName="1.0.34" >
4+
android:versionCode="0100035"
5+
android:versionName="1.0.35" >
66

77
<uses-sdk
88
android:minSdkVersion="16"

src/com/owncloud/android/ui/activity/PrivacyPolicyActivity.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ protected void onCreate(Bundle savedInstanceState) {
5959
WebView webview = (WebView) findViewById(R.id.privacyPolicyWebview);
6060
webview.getSettings().setJavaScriptEnabled(true);
6161

62+
// next two settings grant that non-responsive webs are zoomed out when loaded
63+
webview.getSettings().setUseWideViewPort(true);
64+
webview.getSettings().setLoadWithOverviewMode(true);
65+
6266
//Enable zoom but hide display zoom controls
6367
webview.getSettings().setBuiltInZoomControls(true);
6468
webview.getSettings().setDisplayZoomControls(false);

src/com/owncloud/android/ui/fragment/ShareFileFragment.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ public class ShareFileFragment extends Fragment
7979
private static final String TAG = ShareFileFragment.class.getSimpleName();
8080
private static final String DEFAULT_NAME_SUFFIX = " (%1$d)";
8181

82+
private static final String QUOTE_START = "\\Q";
83+
private static final String QUOTE_END = "\\E";
8284
private static final String DEFAULT_NAME_REGEX_SUFFIX = " \\((\\d+)\\)\\z";
8385
// matches suffix (end of the string with \z) in the form "(X)", where X is an integer of any length;
8486
// also captures the number to reference it later during the match;
@@ -260,7 +262,7 @@ private String getAvailableDefaultPublicName() {
260262

261263
String defaultName = getString(R.string.share_via_link_default_name_template,
262264
mFile.getFileName());
263-
String defaultNameNumberedRegex = defaultName + DEFAULT_NAME_REGEX_SUFFIX;
265+
String defaultNameNumberedRegex = QUOTE_START + defaultName + QUOTE_END + DEFAULT_NAME_REGEX_SUFFIX;
264266

265267
// Array with numbers already set in public link names
266268
ArrayList<Integer> usedNumbers = new ArrayList<>();

src/com/owncloud/android/ui/preview/PreviewAudioFragment.java

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ public void onActivityCreated(Bundle savedInstanceState) {
167167
Log_OC.v(TAG, "onActivityCreated");
168168

169169
OCFile file;
170+
Bundle args = getArguments();
170171
if (savedInstanceState == null) {
171-
Bundle args = getArguments();
172172
file = args.getParcelable(PreviewAudioFragment.EXTRA_FILE);
173173
setFile(file);
174174
mAccount = args.getParcelable(PreviewAudioFragment.EXTRA_ACCOUNT);
@@ -179,8 +179,14 @@ public void onActivityCreated(Bundle savedInstanceState) {
179179
file = savedInstanceState.getParcelable(PreviewAudioFragment.EXTRA_FILE);
180180
setFile(file);
181181
mAccount = savedInstanceState.getParcelable(PreviewAudioFragment.EXTRA_ACCOUNT);
182-
mSavedPlaybackPosition = savedInstanceState.getInt(PreviewAudioFragment.EXTRA_PLAY_POSITION);
183-
mAutoplay = savedInstanceState.getBoolean(PreviewAudioFragment.EXTRA_PLAYING);
182+
mSavedPlaybackPosition = savedInstanceState.getInt(
183+
PreviewAudioFragment.EXTRA_PLAY_POSITION,
184+
args.getInt(PreviewAudioFragment.EXTRA_PLAY_POSITION)
185+
);
186+
mAutoplay = savedInstanceState.getBoolean(
187+
PreviewAudioFragment.EXTRA_PLAYING,
188+
args.getBoolean(PreviewAudioFragment.EXTRA_PLAYING)
189+
);
184190
}
185191

186192
if (file == null) {
@@ -234,8 +240,10 @@ public void onSaveInstanceState(Bundle outState) {
234240

235241
outState.putParcelable(PreviewAudioFragment.EXTRA_FILE, getFile());
236242
outState.putParcelable(PreviewAudioFragment.EXTRA_ACCOUNT, mAccount);
237-
outState.putInt(PreviewAudioFragment.EXTRA_PLAY_POSITION, mMediaServiceBinder.getCurrentPosition());
238-
outState.putBoolean(PreviewAudioFragment.EXTRA_PLAYING, mMediaServiceBinder.isPlaying());
243+
if (mMediaServiceBinder != null) {
244+
outState.putInt(PreviewAudioFragment.EXTRA_PLAY_POSITION, mMediaServiceBinder.getCurrentPosition());
245+
outState.putBoolean(PreviewAudioFragment.EXTRA_PLAYING, mMediaServiceBinder.isPlaying());
246+
}
239247
}
240248

241249

0 commit comments

Comments
 (0)