Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
NewParkAPP
Project
Project
Details
Activity
Releases
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
YONG-LIN SU
NewParkAPP
Commits
7ab9ec9a
Commit
7ab9ec9a
authored
Jul 18, 2024
by
陳煦元
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
V3.0.7 修正自動預設小客車
parent
102c4fe3
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
15 deletions
+7
-15
build.gradle
app/build.gradle
+1
-1
app-release.apk
app/release/app-release.apk
+0
-0
output-metadata.json
app/release/output-metadata.json
+1
-1
T02AutoVehicleTypeActivity.java
...m/android/newparkapp/view/T02AutoVehicleTypeActivity.java
+1
-2
T02StartActivity.java
...n/java/ecom/android/newparkapp/view/T02StartActivity.java
+3
-9
T03ListFilesActivity.java
...va/ecom/android/newparkapp/view/T03ListFilesActivity.java
+1
-2
No files found.
app/build.gradle
View file @
7ab9ec9a
...
...
@@ -10,7 +10,7 @@ android {
minSdk
27
targetSdk
30
versionCode
1
versionName
"Dev Ver.3.0.
6
(無車辨)"
versionName
"Dev Ver.3.0.
7
(無車辨)"
testInstrumentationRunner
"androidx.test.runner.AndroidJUnitRunner"
...
...
app/release/app-release.apk
View file @
7ab9ec9a
No preview for this file type
app/release/output-metadata.json
View file @
7ab9ec9a
...
...
@@ -12,7 +12,7 @@
"filters"
:
[],
"attributes"
:
[],
"versionCode"
:
1
,
"versionName"
:
"Dev Ver.3.0.
6
(無車辨)"
,
"versionName"
:
"Dev Ver.3.0.
7
(無車辨)"
,
"outputFile"
:
"app-release.apk"
}
],
...
...
app/src/main/java/ecom/android/newparkapp/view/T02AutoVehicleTypeActivity.java
View file @
7ab9ec9a
...
...
@@ -36,12 +36,11 @@ public class T02AutoVehicleTypeActivity extends AppCompatActivity {
private
void
first
(){
Intent
intent
=
getIntent
();
Bundle
bundle
=
new
Bundle
();
VehicleType
vehicleType
=
new
VehicleType
(
"1"
,
"自小客"
);
VehicleType
vehicleType
=
new
VehicleType
(
"
0
1"
,
"自小客"
);
bundle
.
putParcelable
(
"VehicleType"
,
vehicleType
);
intent
.
putExtras
(
bundle
);
setResult
(
RESULT_OK
,
intent
);
finish
();
}
}
app/src/main/java/ecom/android/newparkapp/view/T02StartActivity.java
View file @
7ab9ec9a
...
...
@@ -122,7 +122,7 @@ public class T02StartActivity extends AppCompatActivity {
super
.
onCreate
(
savedInstanceState
);
// 初始化例外處理器
CrashHandlers
.
getInstance
().
init
(
this
);
CrashHandlers
.
getInstance
().
init
(
this
);
//Errorlog產生器
dataBinding
=
DataBindingUtil
.
setContentView
(
this
,
R
.
layout
.
activity_t02_start
);
dataBinding
.
setLifecycleOwner
(
this
);
...
...
@@ -187,11 +187,9 @@ public class T02StartActivity extends AppCompatActivity {
if
(
blueToothViewModel
!=
null
){
blueToothViewModel
.
disconnect
();
}
if
(
t02StartViewModel
!=
null
){
t02StartViewModel
.
stopTimer
();
}
// 關閉 Activity 前,須將相關附屬的 windows視窗關閉,避免內存洩漏
if
(
alertDialogProgress
!=
null
){
alertDialogProgress
.
dismiss
();
...
...
@@ -833,7 +831,6 @@ public class T02StartActivity extends AppCompatActivity {
}
else
if
(
result
==
0
)
{
t03CumulativeTimeDataBinding
.
diaCumulativeTimeTextView
.
setText
(
simpleDate
.
format
(
finalTime2
));
//兩時間相等
}
//將資料儲存進currentCase
tempCase
.
finalTime
=
calendar
.
getTime
();
...
...
@@ -1160,7 +1157,6 @@ public class T02StartActivity extends AppCompatActivity {
bundle
.
putParcelable
(
"Shift"
,
shift
);
intent
.
putExtras
(
bundle
);
searchingParkingSpaceActivityResultLauncher
.
launch
(
intent
);
}
else
{
// 無車格,直接進入手動選取車格
btnParkingSpaceOnClicked
();
...
...
@@ -1229,10 +1225,10 @@ public class T02StartActivity extends AppCompatActivity {
}
break
;
case
VEHICLE_BRAND:
if
(
tempCase
.
vehicleBrand
==
null
){
{
if
(
tempCase
.
vehicleBrand
==
null
){
index
=
i
;
break
outerloop
;
}
}
}
default
:
break
;
}
...
...
@@ -1294,9 +1290,7 @@ public class T02StartActivity extends AppCompatActivity {
bundle
.
putInt
(
"UserId"
,
currentUser
.
id
);
bundle
.
putParcelable
(
"Shift"
,
shift
);
intent
.
putExtras
(
bundle
);
gpsSearchModeActivityResultLauncher
.
launch
(
intent
);
}
private
void
go2PlateAndSpaceConfirm
(
BoxInfo
boxInfo
){
...
...
app/src/main/java/ecom/android/newparkapp/view/T03ListFilesActivity.java
View file @
7ab9ec9a
...
...
@@ -39,7 +39,6 @@ public class T03ListFilesActivity extends AppCompatActivity {
private
int
userId
;
private
Shift
shift
;
private
String
plateNumber
;
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
...
...
@@ -71,7 +70,7 @@ public class T03ListFilesActivity extends AppCompatActivity {
}
});
infoRepository
=
new
InfoRepository
(
getApplication
());
//
caseAndAllCasePhotos = infoRepository.caseDao.getAllWithCasePhotoByShitAndUserId(shift, userId);
//caseAndAllCasePhotos = infoRepository.caseDao.getAllWithCasePhotoByShitAndUserId(shift, userId);
caseAndAllCasePhotos
=
infoRepository
.
getAllCaseWithCasePhotoByShiftAndUserToday
(
shift
,
userId
);
caseListAdapter
.
submitList
(
caseAndAllCasePhotos
);
dataBinding
.
rvCaseList
.
setLayoutManager
(
new
LinearLayoutManager
(
this
));
...
...
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