Skip to content

Commit

Permalink
Release 1.0.2-alpha
Browse files Browse the repository at this point in the history
Changes Log:
- Implement orbit moon via moon file (beta)
- Allow removing moon cache manually (beta)
- Fix: custom planet file might be overwritten
  • Loading branch information
kaaass committed Apr 9, 2021
1 parent fbc9064 commit 62696a9
Show file tree
Hide file tree
Showing 4 changed files with 6 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 @@ -16,8 +16,8 @@ android {
applicationId "net.kaaass.zerotierfix"
minSdkVersion 21
targetSdkVersion 30
versionCode 4
versionName "1.0.1"
versionCode 5
versionName "1.0.2-alpha"

testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,7 @@ public void onAddMoonOrbitEvent(AddMoonOrbitEvent event) {
// 数据库修改
DaoSession daoSession = ((AnalyticsApplication) getActivity().getApplication()).getDaoSession();
long existCount = daoSession.getMoonOrbitDao().queryBuilder()
.where(MoonOrbitDao.Properties.MoonWorldId.eq(moonWorldId),
MoonOrbitDao.Properties.MoonSeed.eq(moonSeed))
.where(MoonOrbitDao.Properties.MoonWorldId.eq(moonWorldId))
.buildCount()
.count();
if (existCount > 0) {
Expand Down Expand Up @@ -441,6 +440,7 @@ public boolean onLongClick(View view) {
// 删除缓存文件
this.mItem.deleteCacheFile(getContext());
this.mMoonConfig.setText(R.string.wait_to_fetch);
Snackbar.make(getView(), R.string.cached_moon_file_delete, BaseTransientBottomBar.LENGTH_SHORT).show();
return true;
}
return false;
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-zh/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,5 @@
<string name="cached">已缓存</string>
<string name="moon_wrong_file_format">Moon 文件格式错误</string>
<string name="moon_world_id_hint">Moon 结点的 Zerotier 地址。即 Moon 文件的文件名(不包含扩展名)。</string>
<string name="cached_moon_file_delete">已删除缓存的 Moon 文件。需手动重连使配置生效。</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,5 @@
<string name="cached">Cached</string>
<string name="moon_wrong_file_format">Wrong moon file format</string>
<string name="moon_world_id_hint">Zerotier address of Moon node. Also filename of its moon file.</string>
<string name="cached_moon_file_delete">Cached moon file deleted. Reconnect for this setting to take effect.</string>
</resources>

0 comments on commit 62696a9

Please sign in to comment.