summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author Android Build Coastguard Worker <android-build-coastguard-worker@google.com> 2025-03-20 16:32:20 -0700
committer Android Build Coastguard Worker <android-build-coastguard-worker@google.com> 2025-03-20 16:32:20 -0700
commiteb3508c8701c0b69ddc0b879624d0a14f88db109 (patch)
treec1a35842695d3923278bfff16c811e761415ceb9 /src
parent6f688e13e1397a56bdd3eeaaaf04d30414ae795b (diff)
parent351a3e2f8408f527d408d55d956558493c507d8c (diff)
Snap for 13248265 from 351a3e2f8408f527d408d55d956558493c507d8c to 25Q2-release
Change-Id: I4c545121fbe227e97a6c4de5bcb0e12048a00c1d
Diffstat (limited to 'src')
-rw-r--r--src/com/android/documentsui/files/FilesActivity.java10
-rw-r--r--src/com/android/documentsui/picker/PickActivity.java4
2 files changed, 10 insertions, 4 deletions
diff --git a/src/com/android/documentsui/files/FilesActivity.java b/src/com/android/documentsui/files/FilesActivity.java
index 50e266d38..cb8708f0b 100644
--- a/src/com/android/documentsui/files/FilesActivity.java
+++ b/src/com/android/documentsui/files/FilesActivity.java
@@ -210,9 +210,13 @@ public class FilesActivity extends BaseActivity implements AbstractActionHandler
updateTaskDescription(intent);
}
- // Set save container background to transparent for edge to edge nav bar.
- View saveContainer = findViewById(R.id.container_save);
- saveContainer.setBackgroundColor(Color.TRANSPARENT);
+ // When the use_material3 flag is on, the file path bar is at the bottom of the layout and
+ // hence the edge to edge nav bar is no longer required.
+ if (!isUseMaterial3FlagEnabled()) {
+ // Set save container background to transparent for edge to edge nav bar.
+ View saveContainer = findViewById(R.id.container_save);
+ saveContainer.setBackgroundColor(Color.TRANSPARENT);
+ }
presentFileErrors(icicle, intent);
}
diff --git a/src/com/android/documentsui/picker/PickActivity.java b/src/com/android/documentsui/picker/PickActivity.java
index 68a797397..4f875072e 100644
--- a/src/com/android/documentsui/picker/PickActivity.java
+++ b/src/com/android/documentsui/picker/PickActivity.java
@@ -224,9 +224,11 @@ public class PickActivity extends BaseActivity implements ActionHandler.Addons {
} else if (mState.action == ACTION_OPEN_TREE ||
mState.action == ACTION_PICK_COPY_DESTINATION) {
PickFragment.show(getSupportFragmentManager());
- } else {
+ } else if (!isUseMaterial3FlagEnabled()) {
// If PickFragment or SaveFragment does not show,
// Set save container background to transparent for edge to edge nav bar.
+ // However when the use_material3 flag is on, the file path bar is at the bottom of the
+ // layout and hence the edge to edge nav bar is no longer required.
View saveContainer = findViewById(R.id.container_save);
saveContainer.setBackgroundColor(Color.TRANSPARENT);
}