mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-06-28 16:00:12 +02:00
79f3cad36d
- rename the createWebView method to getInstance - remove the stateChangeListener after it has been fired once and remove obsolete code within - instantiate the jsInterface object only when needed - use the application context when possible to limit the usage of the mutableContextWrapper
16 lines
425 B
Java
16 lines
425 B
Java
package nodomain.freeyourgadget.gadgetbridge.activities;
|
|
|
|
import android.app.Activity;
|
|
import android.os.Bundle;
|
|
|
|
import nodomain.freeyourgadget.gadgetbridge.util.WebViewSingleton;
|
|
|
|
public class BackgroundWebViewActivity extends Activity {
|
|
@Override
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
super.onCreate(savedInstanceState);
|
|
WebViewSingleton.getInstance(this);
|
|
finish();
|
|
}
|
|
}
|