Snap for 7670707 from a1b8347ae4 to sc-v2-release
Change-Id: Ib033e03648af48bc5961a09f69d1c65f7c1bb28f
This commit is contained in:
10
Android.bp
10
Android.bp
@@ -73,6 +73,7 @@ android_library {
|
||||
"android.hardware.dumpstate-V1.0-java",
|
||||
"android.hardware.dumpstate-V1.1-java",
|
||||
"lottie",
|
||||
"windowExtLib",
|
||||
],
|
||||
|
||||
libs: [
|
||||
@@ -101,6 +102,10 @@ android_app {
|
||||
],
|
||||
static_libs: ["Settings-core"],
|
||||
uses_libs: ["org.apache.http.legacy"],
|
||||
optional_uses_libs: [
|
||||
"androidx.window.extensions",
|
||||
"androidx.window.sidecar",
|
||||
],
|
||||
resource_dirs: [],
|
||||
optimize: {
|
||||
proguard_flags_files: ["proguard.flags"],
|
||||
@@ -112,6 +117,11 @@ android_library_import {
|
||||
aars: ["libs/contextualcards.aar"],
|
||||
}
|
||||
|
||||
android_library_import {
|
||||
name: "windowExtLib",
|
||||
aars: ["libs/window_ext_lib.aar"],
|
||||
}
|
||||
|
||||
filegroup {
|
||||
name: "Settings_proguard_flags",
|
||||
srcs: ["proguard.flags"],
|
||||
|
||||
@@ -121,6 +121,9 @@
|
||||
android:appComponentFactory="androidx.core.app.CoreComponentFactory">
|
||||
|
||||
<uses-library android:name="org.apache.http.legacy"/>
|
||||
<uses-library android:name="androidx.window.extensions" android:required="false"/>
|
||||
<uses-library android:name="androidx.window.sidecar" android:required="false"/>
|
||||
|
||||
<!-- Settings -->
|
||||
|
||||
<activity android:name=".homepage.SettingsHomepageActivity"
|
||||
|
||||
BIN
libs/window_ext_lib.aar
Normal file
BIN
libs/window_ext_lib.aar
Normal file
Binary file not shown.
@@ -66,3 +66,7 @@
|
||||
-keepclasseswithmembers class * extends com.android.settings.slices.SliceBackgroundWorker {
|
||||
public <init>(android.content.Context, android.net.Uri);
|
||||
}
|
||||
|
||||
# Keep WM Jetpack classes and callbacks
|
||||
-keep class androidx.window.** { *; }
|
||||
-dontwarn androidx.window.extensions.**
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
android:layout_marginBottom="5dp"
|
||||
android:fontFamily="@*android:string/config_headlineFontFamily"
|
||||
android:paddingTop="0dp"
|
||||
android:textColor="?android:attr/colorAccent"
|
||||
android:textColor="?android:attr/textColorPrimary"
|
||||
android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Display1"
|
||||
/>
|
||||
|
||||
@@ -45,9 +45,9 @@
|
||||
<ProgressBar
|
||||
android:id="@+id/color_bar"
|
||||
style="?android:attr/progressBarStyleHorizontal"
|
||||
android:scaleY="1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:progressDrawable="@drawable/color_bar_progress"/>
|
||||
android:layout_height="wrap_content"/>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/label_bar"
|
||||
|
||||
@@ -21,6 +21,8 @@ import android.content.Context;
|
||||
import android.content.DialogInterface;
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import android.view.Window;
|
||||
import android.view.WindowManager;
|
||||
import android.widget.Button;
|
||||
import android.widget.ImageButton;
|
||||
import android.widget.TextView;
|
||||
@@ -108,6 +110,8 @@ public class WifiDialog2 extends AlertDialog implements WifiConfigUiBase2,
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
setWindowsOverlay();
|
||||
|
||||
mView = getLayoutInflater().inflate(R.layout.wifi_dialog, /* root */ null);
|
||||
setView(mView);
|
||||
mController = new WifiConfigController2(this, mView, mWifiEntry, mMode);
|
||||
@@ -126,6 +130,13 @@ public class WifiDialog2 extends AlertDialog implements WifiConfigUiBase2,
|
||||
}
|
||||
}
|
||||
|
||||
private void setWindowsOverlay() {
|
||||
final Window window = getWindow();
|
||||
final WindowManager.LayoutParams lp = window.getAttributes();
|
||||
window.setType(WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG);
|
||||
window.setAttributes(lp);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onStart() {
|
||||
final ImageButton ssidScannerButton = findViewById(R.id.ssid_scanner_button);
|
||||
|
||||
Reference in New Issue
Block a user