Skip to content

Commit 4e07f77

Browse files
authored
Merge pull request #141 from doncung/UseFlagSecure
Use Flag Secure boolean in newest content SDK.
2 parents b9dc15b + 05e33b0 commit 4e07f77

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

box-browse-sdk/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ android {
77
defaultConfig {
88
minSdkVersion 14
99
targetSdkVersion 23
10-
versionCode 20000
11-
versionName "2.0.0"
12-
version "2.0.0"
10+
versionCode 20001
11+
versionName "2.0.1"
12+
version "2.0.1"
1313
group "com.box"
1414
}
1515
buildTypes {
@@ -40,7 +40,7 @@ dependencies {
4040
compile fileTree(dir: 'libs', include: ['*.jar'])
4141

4242
// compile 'com.box:box-android-sdk:3.0.3'
43-
compile 'com.box:box-android-sdk:[4.0,4.1)'
43+
compile 'com.box:box-android-sdk:4.0.8'
4444
compile 'com.android.support:appcompat-v7:23.4.0'
4545
compile 'com.android.support:recyclerview-v7:23.4.0'
4646
compile 'com.android.support:support-v4:23.4.0'

box-browse-sdk/src/main/java/com/box/androidsdk/browse/activities/BoxThreadPoolExecutorActivity.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@
1717
import android.text.style.ForegroundColorSpan;
1818
import android.text.style.TextAppearanceSpan;
1919
import android.view.View;
20+
import android.view.WindowManager;
2021
import android.widget.Toast;
2122

2223
import com.box.androidsdk.browse.R;
24+
import com.box.androidsdk.content.BoxConfig;
2325
import com.box.androidsdk.content.BoxFutureTask;
2426
import com.box.androidsdk.content.auth.BoxAuthentication;
2527
import com.box.androidsdk.content.models.BoxItem;
@@ -72,6 +74,9 @@ else if (intent.getAction().equals(ACTION_ENDING_TASK)) {
7274
@Override
7375
protected void onCreate(Bundle savedInstanceState) {
7476
super.onCreate(savedInstanceState);
77+
if (BoxConfig.IS_FLAG_SECURE){
78+
getWindow().addFlags(WindowManager.LayoutParams.FLAG_SECURE);
79+
}
7580
mDialogHandler = new LastRunnableHandler();
7681
String userId = null;
7782
if (savedInstanceState != null && savedInstanceState.getSerializable(EXTRA_ITEM) != null){

0 commit comments

Comments
 (0)