Skip to content

Commit

Permalink
Merge pull request #141 from doncung/UseFlagSecure
Browse files Browse the repository at this point in the history
Use Flag Secure boolean in newest content SDK.
  • Loading branch information
seema-at-box authored Mar 28, 2017
2 parents b9dc15b + 05e33b0 commit 4e07f77
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 4 additions & 4 deletions box-browse-sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ android {
defaultConfig {
minSdkVersion 14
targetSdkVersion 23
versionCode 20000
versionName "2.0.0"
version "2.0.0"
versionCode 20001
versionName "2.0.1"
version "2.0.1"
group "com.box"
}
buildTypes {
Expand Down Expand Up @@ -40,7 +40,7 @@ dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])

// compile 'com.box:box-android-sdk:3.0.3'
compile 'com.box:box-android-sdk:[4.0,4.1)'
compile 'com.box:box-android-sdk:4.0.8'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:recyclerview-v7:23.4.0'
compile 'com.android.support:support-v4:23.4.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@
import android.text.style.ForegroundColorSpan;
import android.text.style.TextAppearanceSpan;
import android.view.View;
import android.view.WindowManager;
import android.widget.Toast;

import com.box.androidsdk.browse.R;
import com.box.androidsdk.content.BoxConfig;
import com.box.androidsdk.content.BoxFutureTask;
import com.box.androidsdk.content.auth.BoxAuthentication;
import com.box.androidsdk.content.models.BoxItem;
Expand Down Expand Up @@ -72,6 +74,9 @@ else if (intent.getAction().equals(ACTION_ENDING_TASK)) {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (BoxConfig.IS_FLAG_SECURE){
getWindow().addFlags(WindowManager.LayoutParams.FLAG_SECURE);
}
mDialogHandler = new LastRunnableHandler();
String userId = null;
if (savedInstanceState != null && savedInstanceState.getSerializable(EXTRA_ITEM) != null){
Expand Down

0 comments on commit 4e07f77

Please sign in to comment.