-[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":40,"versionName":"202110281025","enabled":true,"outputFile":"ICL02Sport_V40_202110281025_release.apk","fullName":"release","baseName":"release"},"path":"ICL02Sport_V40_202110281025_release.apk","properties":{}}]
\ No newline at end of file
+[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":43,"versionName":"202110291644","enabled":true,"outputFile":"ICL02Sport_V43_202110291644_release.apk","fullName":"release","baseName":"release"},"path":"ICL02Sport_V43_202110291644_release.apk","properties":{}}]
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
- package="com.ic.sport">
+ package="com.ic.sport"
+ android:sharedUserId="android.uid.system">
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.RECEIVE_USER_PRESENT" />
import androidx.lifecycle.ViewModelProvider;
import com.ic.aidl.ped.RecordParcelable;
+import com.ic.iclooger.ICLogger;
import com.ic.sport.presenter.PedometerPresenter;
import com.ic.sport.util.IcLog;
}
public void onBindService() {
+ ICLogger.e("onBindService...");
pedometerPresenter.bindService();
}
public void syncPedWeightSetting(int weight) {
pedometerPresenter.syncPedWeightSetting(weight);
}
+
public static class Factory extends ViewModelProvider.NewInstanceFactory {
@NonNull
import android.content.ComponentName;
import android.content.Context;
+import android.content.Intent;
import android.content.ServiceConnection;
import android.os.IBinder;
import com.ic.aidl.ped.IPedRemoteService;
import com.ic.aidl.ped.RecordParcelable;
import com.ic.sport.util.IcLog;
-import com.ic.sport.util.ServiceUtil;
import java.util.Collections;
import java.util.List;
};
public void bindService() {
- ServiceUtil.bindServiceUtil(mContext, "com.ic.action.WORK_SERVICE",
- connection, mContext.getPackageName(), 103);
+ Intent intent = new Intent("com.ic.action.WORK_SERVICE");
+ intent.setPackage("com.ic.work");
+ intent.putExtra("target", "sport");
+ mContext.bindService(intent, connection, Context.BIND_AUTO_CREATE);
}
public void unbindService() {
try {
mService.unregisterCallback(pedInterface);
- ServiceUtil.unBindServiceUtil(mContext, connection);
+ mContext.unbindService(connection);
} catch (Exception e) {
IcLog.e(TAG, "unbindService");
} finally {
TypedArray typedArray = getContext().obtainStyledAttributes(attrs, R.styleable.CircleProgress);
neiYuanColor = typedArray.getColor(R.styleable.CircleProgress_neiYuanColor, getTransparentColor());
ringRadius = (int) typedArray.getDimension(R.styleable.CircleProgress_ringRadius, -1);
- ringWidth = (int) typedArray.getDimension(R.styleable.CircleProgress_ringWidth, 22);
+ ringWidth = (int) typedArray.getDimension(R.styleable.CircleProgress_ringWidth, 34);
ringColor = typedArray.getColor(R.styleable.CircleProgress_ringColor,
ContextCompat.getColor(getContext(), R.color.top_color2));
ringProgressColor = typedArray.getColor(R.styleable.CircleProgress_ringProgressColor,
android:padding="5dp"
android:text="@string/app_name"
android:textColor="@color/green1"
- android:textSize="30sp"
- android:textStyle="bold" />
+ android:textSize="22sp" />
<TextView
android:id="@+id/top_time_tv"
android:layout_gravity="right|top"
android:padding="5dp"
android:textColor="@color/white"
- android:textSize="30sp"
- android:textStyle="bold" />
+ android:textSize="22sp" />
<androidx.viewpager2.widget.ViewPager2
<variable
name="pedTarget"
type="String" />
+
<variable
name="calorieValue"
type="String" />
android:id="@+id/ring_progress"
android:layout_width="match_parent"
android:layout_height="match_parent"
+ android:layout_marginTop="5dp"
app:decimalPointLength="1"
app:isClockwise="true"
app:isDecimal="true"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
- android:layout_marginBottom="60dp"
+ android:layout_marginBottom="50dp"
android:drawableTop="@mipmap/icon_calorie_small"
android:text="@{calorieValue}"
android:textColor="@color/white"
android:layout_toRightOf="@id/left_icon"
android:text="@{setupItemTitle}"
android:textColor="@color/white"
- android:textSize="30sp"
+ android:textSize="22sp"
android:textStyle="bold" />
<TextView
android:layout_toLeftOf="@id/right_unit"
android:text="@{setupItemValue}"
android:textColor="@color/white"
- android:textSize="30sp"
+ android:textSize="22sp"
android:textStyle="bold" />
<TextView
android:layout_marginRight="10dp"
android:text="@{setupItemUnit}"
android:textColor="@color/white"
- android:textSize="30sp"
+ android:textSize="22sp"
android:textStyle="bold" />
</RelativeLayout>
<string name="tips_height_unit">cm</string>
<string name="tips_weight_unit">kg</string>
- <string name="tips_target_unit">steps</string>
+ <string name="tips_target_unit">stp</string>
<string name="ped_record_name">Records</string>
<string name="tips_calories_unit">kcal</string>
-#Thu Oct 28 10:25:00 CST 2021\r
-VERSION_CODE=40\r
+#Fri Oct 29 16:44:19 CST 2021\r
+VERSION_CODE=43\r