Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
Sobot_module_Dev
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sobot_android
Sobot_module_Dev
Commits
25d73387
Commit
25d73387
authored
Feb 08, 2025
by
zhengnw@sobot.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widget 1.3.0
parent
04b868ae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
sobot-widget-publish-mavencentral.gradle
sobot_widget/sobot-widget-publish-mavencentral.gradle
+1
-1
SobotBaseActivity.java
...main/java/com/sobot/widget/ui/base/SobotBaseActivity.java
+7
-3
No files found.
sobot_widget/sobot-widget-publish-mavencentral.gradle
View file @
25d73387
...
...
@@ -12,7 +12,7 @@ task androidSourcesJar(type: Jar) {
ext
{
PUBLISH_GROUP_ID
=
"com.sobot.library"
//项目包名
PUBLISH_ARTIFACT_ID
=
'widget_x'
//项目名
PUBLISH_VERSION
=
'1.
2.9
'
//版本号
PUBLISH_VERSION
=
'1.
3.0
'
//版本号
}
...
...
sobot_widget/src/main/java/com/sobot/widget/ui/base/SobotBaseActivity.java
View file @
25d73387
...
...
@@ -179,7 +179,13 @@ public abstract class SobotBaseActivity extends FragmentActivity {
public
void
changeAppLanguage
()
{
try
{
Locale
locale
=
(
Locale
)
SobotSharedPreferencesUtil
.
getInstance
(
getSobotBaseActivity
()).
get
(
"SobotLanguage"
,
Locale
.
class
);
String
lang
=
SobotSharedPreferencesUtil
.
getInstance
(
getSobotBaseContext
()).
get
(
"SobotLanguageStr"
,
""
);
Locale
locale
;
if
(
lang
.
equals
(
"zh-Hant"
))
{
locale
=
new
Locale
(
"zh"
,
"TW"
);
}
else
{
locale
=
new
Locale
(
lang
);
}
if
(
locale
==
null
)
{
//获取系统语言
locale
=
getSysPreferredLocale
();
...
...
@@ -271,7 +277,6 @@ public abstract class SobotBaseActivity extends FragmentActivity {
protected
TextView
getRightMenu
()
{
return
findViewById
(
getResId
(
"sobot_tv_right"
));
}
protected
ImageView
getRightIcon
()
{
return
findViewById
(
getResId
(
"call_icon"
));
}
...
...
@@ -636,7 +641,6 @@ public abstract class SobotBaseActivity extends FragmentActivity {
intent
.
putExtra
(
"selectType"
,
selectType
);
startActivityForResult
(
intent
,
SobotBaseConstant
.
REQUEST_CODE_PICTURE
);
}
/**
* 检查存储权限
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment