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.0-java",
|
||||||
"android.hardware.dumpstate-V1.1-java",
|
"android.hardware.dumpstate-V1.1-java",
|
||||||
"lottie",
|
"lottie",
|
||||||
|
"windowExtLib",
|
||||||
],
|
],
|
||||||
|
|
||||||
libs: [
|
libs: [
|
||||||
@@ -101,6 +102,10 @@ android_app {
|
|||||||
],
|
],
|
||||||
static_libs: ["Settings-core"],
|
static_libs: ["Settings-core"],
|
||||||
uses_libs: ["org.apache.http.legacy"],
|
uses_libs: ["org.apache.http.legacy"],
|
||||||
|
optional_uses_libs: [
|
||||||
|
"androidx.window.extensions",
|
||||||
|
"androidx.window.sidecar",
|
||||||
|
],
|
||||||
resource_dirs: [],
|
resource_dirs: [],
|
||||||
optimize: {
|
optimize: {
|
||||||
proguard_flags_files: ["proguard.flags"],
|
proguard_flags_files: ["proguard.flags"],
|
||||||
@@ -112,6 +117,11 @@ android_library_import {
|
|||||||
aars: ["libs/contextualcards.aar"],
|
aars: ["libs/contextualcards.aar"],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
android_library_import {
|
||||||
|
name: "windowExtLib",
|
||||||
|
aars: ["libs/window_ext_lib.aar"],
|
||||||
|
}
|
||||||
|
|
||||||
filegroup {
|
filegroup {
|
||||||
name: "Settings_proguard_flags",
|
name: "Settings_proguard_flags",
|
||||||
srcs: ["proguard.flags"],
|
srcs: ["proguard.flags"],
|
||||||
|
|||||||
@@ -121,6 +121,9 @@
|
|||||||
android:appComponentFactory="androidx.core.app.CoreComponentFactory">
|
android:appComponentFactory="androidx.core.app.CoreComponentFactory">
|
||||||
|
|
||||||
<uses-library android:name="org.apache.http.legacy"/>
|
<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 -->
|
<!-- Settings -->
|
||||||
|
|
||||||
<activity android:name=".homepage.SettingsHomepageActivity"
|
<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 {
|
-keepclasseswithmembers class * extends com.android.settings.slices.SliceBackgroundWorker {
|
||||||
public <init>(android.content.Context, android.net.Uri);
|
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:layout_marginBottom="5dp"
|
||||||
android:fontFamily="@*android:string/config_headlineFontFamily"
|
android:fontFamily="@*android:string/config_headlineFontFamily"
|
||||||
android:paddingTop="0dp"
|
android:paddingTop="0dp"
|
||||||
android:textColor="?android:attr/colorAccent"
|
android:textColor="?android:attr/textColorPrimary"
|
||||||
android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Display1"
|
android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Display1"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
@@ -45,9 +45,9 @@
|
|||||||
<ProgressBar
|
<ProgressBar
|
||||||
android:id="@+id/color_bar"
|
android:id="@+id/color_bar"
|
||||||
style="?android:attr/progressBarStyleHorizontal"
|
style="?android:attr/progressBarStyleHorizontal"
|
||||||
|
android:scaleY="1"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"/>
|
||||||
android:progressDrawable="@drawable/color_bar_progress"/>
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/label_bar"
|
android:id="@+id/label_bar"
|
||||||
|
|||||||
@@ -21,6 +21,8 @@ import android.content.Context;
|
|||||||
import android.content.DialogInterface;
|
import android.content.DialogInterface;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
|
import android.view.Window;
|
||||||
|
import android.view.WindowManager;
|
||||||
import android.widget.Button;
|
import android.widget.Button;
|
||||||
import android.widget.ImageButton;
|
import android.widget.ImageButton;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
@@ -108,6 +110,8 @@ public class WifiDialog2 extends AlertDialog implements WifiConfigUiBase2,
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
|
setWindowsOverlay();
|
||||||
|
|
||||||
mView = getLayoutInflater().inflate(R.layout.wifi_dialog, /* root */ null);
|
mView = getLayoutInflater().inflate(R.layout.wifi_dialog, /* root */ null);
|
||||||
setView(mView);
|
setView(mView);
|
||||||
mController = new WifiConfigController2(this, mView, mWifiEntry, mMode);
|
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
|
@Override
|
||||||
protected void onStart() {
|
protected void onStart() {
|
||||||
final ImageButton ssidScannerButton = findViewById(R.id.ssid_scanner_button);
|
final ImageButton ssidScannerButton = findViewById(R.id.ssid_scanner_button);
|
||||||
|
|||||||
Reference in New Issue
Block a user