Skip to content

Commit

Permalink
Merge pull request #2882 from nextcloud/backport-2881
Browse files Browse the repository at this point in the history
Backport of #2881
  • Loading branch information
tobiasKaminsky authored Aug 20, 2018
2 parents 870a8d1 + c4e7932 commit 1dde64f
Show file tree
Hide file tree
Showing 31 changed files with 3,350 additions and 2,807 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ android {
testInstrumentationRunnerArgument "TEST_SERVER_URL", "\"$System.env.OCTEST_SERVER_BASE_URL\""

multiDexEnabled true
vectorDrawables.useSupportLibrary = true

versionCode versionMajor * 10000000 + versionMinor * 10000 + versionPatch * 100 + versionBuild

Expand Down
56 changes: 56 additions & 0 deletions drawable_resources/first_run_files.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 56 additions & 0 deletions drawable_resources/first_run_groupware.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
66 changes: 66 additions & 0 deletions drawable_resources/first_run_talk.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,10 @@
<activity android:name=".ui.activity.UploadListActivity" />
<activity android:name=".ui.activity.WhatsNewActivity"
android:theme="@style/Theme.ownCloud.noActionBar.Login" />
<activity
android:name=".ui.activity.FirstRunActivity"
android:theme="@style/Theme.ownCloud.noActionBar.Login"
android:configChanges="orientation|screenSize"/>

<receiver android:name=".files.BootupBroadcastReceiver" >
<intent-filter>
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/com/owncloud/android/MainApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -636,4 +636,9 @@ private static void cleanOldEntries() {
}
}
}

static public int getLastSeenVersionCode(Context context) {
SharedPreferences pref = android.preference.PreferenceManager.getDefaultSharedPreferences(context);
return pref.getInt(WhatsNewActivity.KEY_LAST_SEEN_VERSION_CODE, 0);
}
}
Loading

0 comments on commit 1dde64f

Please sign in to comment.