Skip to content

Commit

Permalink
fix:一些闪退问题
Browse files Browse the repository at this point in the history
版本:v0.7
  • Loading branch information
a2633063 committed Apr 4, 2019
1 parent d227f11 commit f079177
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 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 6
versionName "0.6"
versionCode 7
versionName "0.7"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
Expand Down
Binary file removed app/release/app-release.apk
Binary file not shown.
3 changes: 3 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
<activity
android:name=".controlItem.tc1.TC1PlugActivity"
android:label="插口"/>
<activity
android:name=".controlItem.dc1.DC1PlugActivity"
android:label="插口"/>
<activity
android:name=".MainActivity"
android:label="@string/app_name"
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/java/com/zyc/zcontrol/DeviceItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import com.zyc.StaticVariable;
import com.zyc.zcontrol.controlItem.buttonmate.ButtonMateFragment;
import com.zyc.zcontrol.controlItem.dc1.DC1Fragment;
import com.zyc.zcontrol.controlItem.tc1.TC1Fragment;


public class DeviceItem {
Expand Down Expand Up @@ -51,7 +52,7 @@ private void init()
fragment=new ButtonMateFragment(name,mac);
break;
case StaticVariable.TYPE_TC1:
fragment=new DC1Fragment(name,mac);
fragment=new TC1Fragment(name,mac);
break;
case StaticVariable.TYPE_DC1:
fragment=new DC1Fragment(name,mac);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import com.zyc.zcontrol.R;
import com.zyc.zcontrol.controlItem.buttonmate.ButtonMateSettingFragment;
import com.zyc.zcontrol.controlItem.dc1.DC1SettingFragment;
import com.zyc.zcontrol.controlItem.tc1.TC1SettingFragment;

public class SettingActivity extends AppCompatActivity {

Expand Down Expand Up @@ -49,7 +50,7 @@ protected void onCreate(Bundle savedInstanceState) {
prefFragment = new ButtonMateSettingFragment(name, mac);
break;
case StaticVariable.TYPE_TC1:
prefFragment = new DC1SettingFragment(name, mac);
prefFragment = new TC1SettingFragment(name, mac);
break;
case StaticVariable.TYPE_DC1:
prefFragment = new DC1SettingFragment(name, mac);
Expand Down

0 comments on commit f079177

Please sign in to comment.