mirror of
https://github.com/TwidereProject/Twidere-Android
synced 2025-02-17 04:00:48 +01:00
Update SpiceUploadReceiver.java
delete wifi state profiling operation
This commit is contained in:
parent
37a290b7f9
commit
22ae6982f1
@ -25,12 +25,6 @@ public class SpiceUploadReceiver extends BroadcastReceiver {
|
||||
final boolean isWifi = Utils.isOnWifi(context.getApplicationContext());
|
||||
final boolean isCharging = SpiceProfilingUtil.isCharging(context.getApplicationContext());
|
||||
|
||||
if (WifiManager.SUPPLICANT_CONNECTION_CHANGE_ACTION.equals(action)) {
|
||||
final boolean wifi = intent.getBooleanExtra(WifiManager.EXTRA_SUPPLICANT_CONNECTED, false);
|
||||
SpiceProfilingUtil.profile(context, SpiceProfilingUtil.FILE_NAME_WIFI, wifi ? "connected" : "disconnected");
|
||||
SpiceProfilingUtil.log(context, wifi ? "connected" : "disconnected" );
|
||||
}
|
||||
|
||||
if (isWifi && isCharging) {
|
||||
new SpiceAsyUploadTask(context).execute();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user