Skip to content

Commit

Permalink
fix:不显示ztc1激活状态的问题
Browse files Browse the repository at this point in the history
fix:编译错误
  • Loading branch information
a2633063 committed May 21, 2019
1 parent a6ee429 commit e4a9dc1
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ android {
applicationId "com.zyc.zcontrol"
minSdkVersion 19
targetSdkVersion 28
versionCode 13
versionName "0.10.1"
versionCode 14
versionName "0.10.2"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
Expand Down
Binary file modified app/release/app-release.apk
Binary file not shown.
4 changes: 2 additions & 2 deletions app/src/main/java/com/zyc/zcontrol/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public void handleMessage(Message msg) {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
toolbar = (Toolbar) findViewById(R.id.toolbar);
toolbar = findViewById(R.id.toolbar);
setSupportActionBar(toolbar);

mSharedPreferences = getSharedPreferences("Setting", 0);
Expand Down Expand Up @@ -408,7 +408,7 @@ public void onResume() {

@Override
public void onBackPressed() {
DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
DrawerLayout drawer = findViewById(R.id.drawer_layout);
if (drawer.isDrawerOpen(GravityCompat.START)) {
drawer.closeDrawer(GravityCompat.START);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ public void onClick(DialogInterface dialog, int which) {
@Override
public void onServiceConnected(ComponentName componentName, IBinder service) {
mConnectService = ((ConnectService.LocalBinder) service).getService();
Send("{\"mac\":\"" + device_mac + "\",\"version\":null}");
Send("{\"mac\":\"" + device_mac + "\",\"version\":null,\"lock\":null}");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintBottom_toBottomOf="@+id/hour_picker"
app:layout_constraintEnd_toEndOf="@+id/tbtn_week_7"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toEndOf="@+id/textView4"
app:layout_constraintTop_toTopOf="@+id/hour_picker"
Expand All @@ -117,7 +117,7 @@
app:layout_constraintEnd_toEndOf="@+id/on_picker"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="@+id/hour_picker"
app:layout_constraintTop_toBottomOf="@+id/tbtn_week_1"
app:layout_constraintTop_toBottomOf="@+id/hour_picker"
app:layout_constraintVertical_bias="0.5" />

</android.support.constraint.ConstraintLayout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintBottom_toBottomOf="@+id/hour_picker"
app:layout_constraintEnd_toEndOf="@+id/tbtn_week_7"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toEndOf="@+id/textView4"
app:layout_constraintTop_toTopOf="@+id/hour_picker"
Expand All @@ -117,7 +117,7 @@
app:layout_constraintEnd_toEndOf="@+id/on_picker"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="@+id/hour_picker"
app:layout_constraintTop_toBottomOf="@+id/tbtn_week_1"
app:layout_constraintTop_toBottomOf="@+id/hour_picker"
app:layout_constraintVertical_bias="0.5" />

</android.support.constraint.ConstraintLayout>
Expand Down

0 comments on commit e4a9dc1

Please sign in to comment.