Add prompt to sign in at captive portal to Wi-Fi Slice
- Support signing in captive portal APs in WifiSlice - Show ContextualWifiSlice when signing in is required - Generifies SliceBackgroundWorker.getInstance() to return <T extends SliceBackgroundWorker> Fixes: 128056349 Test: make RunSettingsRoboTests -j Change-Id: Ib4d3942591a65e81018389e4c0bbddfea6854dbc
This commit is contained in:
@@ -68,16 +68,17 @@ public abstract class SliceBackgroundWorker<E> implements Closeable {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the singleton instance of the {@link SliceBackgroundWorker} for specified {@link Uri}
|
||||
* if exists
|
||||
* Returns the singleton instance of {@link SliceBackgroundWorker} for specified {@link Uri} if
|
||||
* exists
|
||||
*/
|
||||
@Nullable
|
||||
public static SliceBackgroundWorker getInstance(Uri uri) {
|
||||
return LIVE_WORKERS.get(uri);
|
||||
@SuppressWarnings("TypeParameterUnusedInFormals")
|
||||
public static <T extends SliceBackgroundWorker> T getInstance(Uri uri) {
|
||||
return (T) LIVE_WORKERS.get(uri);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the singleton instance of the {@link SliceBackgroundWorker} for specified {@link
|
||||
* Returns the singleton instance of {@link SliceBackgroundWorker} for specified {@link
|
||||
* CustomSliceable}
|
||||
*/
|
||||
static SliceBackgroundWorker getInstance(Context context, Sliceable sliceable, Uri uri) {
|
||||
@@ -165,4 +166,4 @@ public abstract class SliceBackgroundWorker<E> implements Closeable {
|
||||
protected final void notifySliceChange() {
|
||||
mContext.getContentResolver().notifyChange(mUri, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user