-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from Explore-In-HMS/dev
Merge branch 'dev' into main
- Loading branch information
Showing
133 changed files
with
22,730 additions
and
18,799 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions
12
app/src/main/java/com/hms/explorehms/CustomsUpdateActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.hms.explorehms; | ||
|
||
import androidx.fragment.app.Fragment; | ||
|
||
import com.kcode.lib.dialog.UpdateActivity; | ||
|
||
public class CustomsUpdateActivity extends UpdateActivity { | ||
@Override | ||
protected Fragment getUpdateDialogFragment() { | ||
return CustomsUpdateFragment.newInstance(mModel,"当前已经是最新版本"); | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
app/src/main/java/com/hms/explorehms/CustomsUpdateFragment.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package com.hms.explorehms; | ||
|
||
import android.os.Bundle; | ||
import android.view.View; | ||
|
||
import com.kcode.lib.bean.VersionModel; | ||
import com.kcode.lib.common.Constant; | ||
import com.kcode.lib.dialog.UpdateDialog; | ||
|
||
public class CustomsUpdateFragment extends UpdateDialog { | ||
|
||
public static CustomsUpdateFragment newInstance(VersionModel model, String toastMsg) { | ||
|
||
Bundle args = new Bundle(); | ||
args.putSerializable(Constant.MODEL, model); | ||
args.putString(Constant.TOAST_MSG, toastMsg); | ||
CustomsUpdateFragment fragment = new CustomsUpdateFragment(); | ||
fragment.setArguments(args); | ||
return fragment; | ||
} | ||
|
||
@Override | ||
protected int getLayout() { | ||
return R.layout.fragment_update_dialog; | ||
} | ||
|
||
@Override | ||
protected void setContent(View view, int contentId) { | ||
super.setContent(view, R.id.content); | ||
} | ||
|
||
@Override | ||
protected void bindUpdateListener(View view, int updateId) { | ||
super.bindUpdateListener(view, R.id.btnUpdate); | ||
} | ||
|
||
@Override | ||
protected void bindCancelListener(View view, int cancelId) { | ||
super.bindCancelListener(view, R.id.cancel); | ||
} | ||
|
||
@Override | ||
protected void initIfMustUpdate(View view, int id) { | ||
super.initIfMustUpdate(view, R.id.cancel); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.