|
|
@ -72,7 +72,18 @@ public class MainActivity extends AppCompatActivity {
|
|
|
|
|
|
|
|
|
|
|
|
Date date = new Date(BuildConfig.BUILD_TIMESTAMP);
|
|
|
|
Date date = new Date(BuildConfig.BUILD_TIMESTAMP);
|
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm");
|
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm");
|
|
|
|
String caption = actionBar.getTitle().toString() + " v" + MicroPhotoContext.getVersionName(getApplicationContext()) + " " + sdf.format(date);
|
|
|
|
String caption = "MP";
|
|
|
|
|
|
|
|
switch (getCustomAppId()) {
|
|
|
|
|
|
|
|
case 1:
|
|
|
|
|
|
|
|
caption = "RP";
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 2:
|
|
|
|
|
|
|
|
caption = "N938";
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
caption += " v" + MicroPhotoContext.getVersionName(getApplicationContext()) + " " + sdf.format(date);
|
|
|
|
sdf = new SimpleDateFormat("MM-dd HH:mm");
|
|
|
|
sdf = new SimpleDateFormat("MM-dd HH:mm");
|
|
|
|
caption += " / " + sdf.format(new Date());
|
|
|
|
caption += " / " + sdf.format(new Date());
|
|
|
|
actionBar.setTitle(caption);
|
|
|
|
actionBar.setTitle(caption);
|
|
|
@ -629,4 +640,6 @@ public class MainActivity extends AppCompatActivity {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private native int getCustomAppId();
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|