Commit 9bd7a268 authored by M M Arif's avatar M M Arif

Merge branch '4-profile' into 'develop'

Resolve "[New] Implement user profile"

Closes #11 and #4

See merge request mmarif4u/gitnex!6
parents d4424583 83b1dfeb
......@@ -6,8 +6,8 @@ android {
applicationId "org.mian.gitnex"
minSdkVersion 21
targetSdkVersion 28
versionCode 2
versionName "pre-alpha1"
versionCode 3
versionName "pre-alpha2"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
......@@ -37,6 +37,7 @@ dependencies {
implementation 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'
implementation 'com.squareup.retrofit2:retrofit:2.5.0'
implementation 'com.squareup.retrofit2:converter-gson:2.5.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.12.1'
implementation "androidx.lifecycle:lifecycle-extensions:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-viewmodel:$lifecycle_version"
......
......@@ -108,7 +108,6 @@ public class LoginActivity extends AppCompatActivity implements View.OnClickList
private void login() {
TinyDB tinyDb = new TinyDB(getApplicationContext());
AppUtil appUtil = new AppUtil();
boolean connToInternet = AppUtil.haveNetworkConnection(LoginActivity.this);
tinyDb.remove("loginUid");
......@@ -119,17 +118,17 @@ public class LoginActivity extends AppCompatActivity implements View.OnClickList
String loginUid = login_uid.getText().toString();
String loginPass = login_passwd.getText().toString();
if (!instanceUrl.startsWith("http://") || !instanceUrl.startsWith("https://")) {
instanceUrl = "https://" + instanceUrl + "/api/v1/";
if(AppUtil.httpCheck(instanceUrl)) {
instanceUrl = instanceUrl + "/api/v1/";
}
else {
instanceUrl = instanceUrl + "/api/v1/";
instanceUrl = "https://" + instanceUrl + "/api/v1/";
}
tinyDb.putString("loginUid", loginUid);
tinyDb.putString("instanceUrl", instanceUrl);
//Log.i("TinyDB old Token: ", tinyDb.getString("loginUid" + "-token"));
Log.i("instanceUrl: ", instanceUrl);
if(connToInternet) {
......
......@@ -212,6 +212,8 @@ public class MainActivity extends AppCompatActivity implements NavigationView.On
private void displayUserInfo(String instanceUrl, String token) {
final TinyDB tinyDb = new TinyDB(getApplicationContext());
Call<UserInfo> call = RetrofitClient
.getInstance(instanceUrl)
.getApiInterface()
......@@ -231,6 +233,13 @@ public class MainActivity extends AppCompatActivity implements NavigationView.On
if (response.code() == 200) {
assert userDetails != null;
tinyDb.putString("userLogin", userDetails.getLogin());
tinyDb.putString("userFullname", userDetails.getFullname());
tinyDb.putString("userEmail", userDetails.getEmail());
tinyDb.putString("userAvatar", userDetails.getAvatar());
tinyDb.putString("userLang", userDetails.getLang());
if (!Objects.requireNonNull(userDetails).getAvatar().equals("")) {
userAvatar = hView.findViewById(R.id.userAvatar);
Picasso.get().load(userDetails.getAvatar()).transform(new RoundedTransformation(100, 0)).resize(180, 180).centerCrop().into(userAvatar);
......
......@@ -52,6 +52,7 @@ public class NewRepoActivity extends AppCompatActivity {
TinyDB tinyDb = new TinyDB(getApplicationContext());
final String instanceUrl = tinyDb.getString("instanceUrl");
final String loginUid = tinyDb.getString("loginUid");
final String userLogin = tinyDb.getString("userLogin");
final String instanceToken = "token " + tinyDb.getString(loginUid + "-token");
closeActivity = findViewById(R.id.close);
......@@ -64,7 +65,7 @@ public class NewRepoActivity extends AppCompatActivity {
spinner = findViewById(R.id.ownerSpinner);
spinner.getBackground().setColorFilter(getResources().getColor(R.color.white), PorterDuff.Mode.SRC_ATOP);
getOrgs(instanceUrl, instanceToken, loginUid);
getOrgs(instanceUrl, instanceToken, userLogin);
spinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
@Override
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
......@@ -232,7 +233,7 @@ public class NewRepoActivity extends AppCompatActivity {
}
private void getOrgs(String instanceUrl, String instanceToken, final String loginUid) {
private void getOrgs(String instanceUrl, String instanceToken, final String userLogin) {
Call<List<OrgOwner>> call = RetrofitClient
.getInstance(instanceUrl)
......@@ -249,7 +250,7 @@ public class NewRepoActivity extends AppCompatActivity {
List<OrgOwner> orgsList_ = response.body();
orgsList.add(new OrgOwner(loginUid));
orgsList.add(new OrgOwner(userLogin));
assert orgsList_ != null;
if(orgsList_.size() > 0) {
for (int i = 0; i < orgsList_.size(); i++) {
......
package org.mian.gitnex.clients;
import android.util.Log;
import org.mian.gitnex.interfaces.ApiInterface;
import java.io.IOException;
import okhttp3.Interceptor;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.logging.HttpLoggingInterceptor;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
......@@ -15,40 +12,27 @@ import retrofit2.converter.gson.GsonConverterFactory;
public class RetrofitClient {
private static RetrofitClient mInstance;
private Retrofit retrofit;
private RetrofitClient(String instanceUrl) {
OkHttpClient okHttpClient = new OkHttpClient.Builder()
.addInterceptor(new Interceptor() {
@Override
public okhttp3.Response intercept(Chain chain) throws IOException {
Request request = chain.request();
okhttp3.Response response = chain.proceed(request);
HttpLoggingInterceptor logging = new HttpLoggingInterceptor();
logging.setLevel(HttpLoggingInterceptor.Level.BODY);
if (response.code() == 400 || response.code() == 500 || response.code() == 502) {
Log.i("Error-code", String.valueOf(response.code()));
return response;
}
return response;
}
})
.build();
OkHttpClient.Builder httpClient = new OkHttpClient.Builder();
httpClient.addInterceptor(logging);
retrofit = new Retrofit.Builder()
.baseUrl(instanceUrl)
.addConverterFactory(GsonConverterFactory.create())
.client(okHttpClient)
//.client(httpClient.build())
.build();
}
public static synchronized RetrofitClient getInstance(String instanceUrl) {
if (mInstance == null) {
mInstance = new RetrofitClient(instanceUrl);
}
return mInstance;
return new RetrofitClient(instanceUrl);
}
public ApiInterface getApiInterface() {
......
......@@ -7,8 +7,13 @@ import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.squareup.picasso.Picasso;
import org.mian.gitnex.R;
import org.mian.gitnex.activities.MainActivity;
import org.mian.gitnex.util.RoundedTransformation;
import org.mian.gitnex.util.TinyDB;
import java.util.Objects;
/**
......@@ -21,7 +26,24 @@ public class ProfileFragment extends Fragment {
@Override
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.fragment_profile, container, false);
((MainActivity) Objects.requireNonNull(getActivity())).setActionBarTitle(getResources().getString(R.string.pageTitleProfile));
return inflater.inflate(R.layout.fragment_profile, container, false);
TinyDB tinyDb = new TinyDB(getContext());
TextView userFullname = v.findViewById(R.id.userFullname);
ImageView userAvatar = v.findViewById(R.id.userAvatar);
TextView userLogin = v.findViewById(R.id.userLogin);
TextView userEmail = v.findViewById(R.id.userEmail);
TextView userLang = v.findViewById(R.id.userLang);
userFullname.setText(tinyDb.getString("userFullname"));
Picasso.get().load(tinyDb.getString("userAvatar")).transform(new RoundedTransformation(100, 0)).resize(180, 180).centerCrop().into(userAvatar);
userLogin.setText(tinyDb.getString("userLogin"));
userEmail.setText(tinyDb.getString("userEmail"));
userLang.setText(tinyDb.getString("userLang"));
return v;
}
}
......@@ -84,4 +84,11 @@ public class AppUtil {
}
public static boolean httpCheck(String url) {
String pattern = "^(http|https)://.*$";
return url.matches(pattern);
}
}
<vector android:height="24dp" android:tint="#CFCFCF"
android:viewportHeight="24.0" android:viewportWidth="24.0"
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#FF000000" android:pathData="M20,4L4,4c-1.1,0 -1.99,0.9 -1.99,2L2,18c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2L22,6c0,-1.1 -0.9,-2 -2,-2zM20,8l-8,5 -8,-5L4,6l8,5 8,-5v2z"/>
</vector>
<vector android:height="24dp" android:tint="#CFCFCF"
android:viewportHeight="24.0" android:viewportWidth="24.0"
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#FF000000" android:pathData="M11.99,2C6.47,2 2,6.48 2,12s4.47,10 9.99,10C17.52,22 22,17.52 22,12S17.52,2 11.99,2zM18.92,8h-2.95c-0.32,-1.25 -0.78,-2.45 -1.38,-3.56 1.84,0.63 3.37,1.91 4.33,3.56zM12,4.04c0.83,1.2 1.48,2.53 1.91,3.96h-3.82c0.43,-1.43 1.08,-2.76 1.91,-3.96zM4.26,14C4.1,13.36 4,12.69 4,12s0.1,-1.36 0.26,-2h3.38c-0.08,0.66 -0.14,1.32 -0.14,2 0,0.68 0.06,1.34 0.14,2L4.26,14zM5.08,16h2.95c0.32,1.25 0.78,2.45 1.38,3.56 -1.84,-0.63 -3.37,-1.9 -4.33,-3.56zM8.03,8L5.08,8c0.96,-1.66 2.49,-2.93 4.33,-3.56C8.81,5.55 8.35,6.75 8.03,8zM12,19.96c-0.83,-1.2 -1.48,-2.53 -1.91,-3.96h3.82c-0.43,1.43 -1.08,2.76 -1.91,3.96zM14.34,14L9.66,14c-0.09,-0.66 -0.16,-1.32 -0.16,-2 0,-0.68 0.07,-1.35 0.16,-2h4.68c0.09,0.65 0.16,1.32 0.16,2 0,0.68 -0.07,1.34 -0.16,2zM14.59,19.56c0.6,-1.11 1.06,-2.31 1.38,-3.56h2.95c-0.96,1.65 -2.49,2.93 -4.33,3.56zM16.36,14c0.08,-0.66 0.14,-1.32 0.14,-2 0,-0.68 -0.06,-1.34 -0.14,-2h3.38c0.16,0.64 0.26,1.31 0.26,2s-0.1,1.36 -0.26,2h-3.38z"/>
</vector>
<vector android:height="24dp" android:tint="#CFCFCF"
android:viewportHeight="24.0" android:viewportWidth="24.0"
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#FF000000" android:pathData="M12,12c2.21,0 4,-1.79 4,-4s-1.79,-4 -4,-4 -4,1.79 -4,4 1.79,4 4,4zM12,14c-2.67,0 -8,1.34 -8,4v2h16v-2c0,-2.66 -5.33,-4 -8,-4z"/>
</vector>
<vector android:height="24dp" android:tint="#CFCFCF"
android:viewportHeight="24.0" android:viewportWidth="24.0"
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#FF000000" android:pathData="M12,1L3,5v6c0,5.55 3.84,10.74 9,12 5.16,-1.26 9,-6.45 9,-12L21,5l-9,-4zM10,17l-4,-4 1.41,-1.41L10,14.17l6.59,-6.59L18,9l-8,8z"/>
</vector>
......@@ -140,7 +140,7 @@
android:layout_height="wrap_content"
android:text="@string/appRepoIssuesText"
android:textColor="@color/colorWhite"
android:textSize="12sp"
android:textSize="14sp"
android:gravity="center"
android:autoLink="web"
android:layout_marginTop="20dp"
......@@ -151,7 +151,7 @@
android:layout_height="wrap_content"
android:text="@string/appRepoIssuesLink"
android:textColor="@color/colorWhite"
android:textSize="12sp"
android:textSize="14sp"
android:gravity="center"
android:autoLink="web"
android:layout_marginStart="10dp"
......@@ -164,7 +164,7 @@
android:layout_marginTop="5dp"
android:layout_weight="1"
android:maxLines="1"
android:textSize="12sp"
android:textSize="14sp"
android:textColor="@color/colorWhite"
android:layout_gravity="center_horizontal"/>
......
......@@ -64,7 +64,7 @@
android:layout_height="wrap_content"
android:text="@string/newOrgTintCopy"
android:textColor="@color/colorWhite"
android:textSize="14sp" />
android:textSize="16sp" />
<EditText
android:id="@+id/newOrganizationName"
......@@ -72,7 +72,7 @@
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:padding="10dp"
android:textSize="14sp"
android:textSize="16sp"
tools:ignore="Autofill"
android:labelFor="@+id/newOrganizationName"
android:background="@drawable/shape_inputs"
......@@ -86,7 +86,7 @@
android:layout_height="wrap_content"
android:text="@string/newOrgDescTintCopy"
android:textColor="@color/colorWhite"
android:textSize="14sp"
android:textSize="16sp"
android:layout_marginTop="10dp" />
<EditText
......@@ -102,7 +102,7 @@
android:labelFor="@+id/newOrganizationDescription"
android:scrollbars="vertical"
android:gravity="top|start"
android:textSize="14sp"
android:textSize="16sp"
android:textColor="@color/colorWhite"
android:textColorHint="@color/colorWhite"
android:inputType="textMultiLine"
......@@ -113,7 +113,7 @@
android:layout_height="wrap_content"
android:text="@string/newOrgDescInfo"
android:textColor="@color/colorWhite"
android:textSize="12sp"
android:textSize="14sp"
android:gravity="end" />
<Button
......
......@@ -64,7 +64,7 @@
android:layout_height="wrap_content"
android:text="@string/newRepoOwner"
android:textColor="@color/colorWhite"
android:textSize="14sp" />
android:textSize="16sp" />
<Spinner
android:id="@+id/ownerSpinner"
......@@ -83,7 +83,7 @@
android:layout_height="wrap_content"
android:text="@string/newRepoTintCopy"
android:textColor="@color/colorWhite"
android:textSize="14sp" />
android:textSize="16sp" />
<EditText
android:id="@+id/newRepoName"
......@@ -91,7 +91,7 @@
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:padding="10dp"
android:textSize="14sp"
android:textSize="16sp"
tools:ignore="Autofill"
android:labelFor="@+id/newRepoName"
android:background="@drawable/shape_inputs"
......@@ -105,7 +105,7 @@
android:layout_height="wrap_content"
android:text="@string/newRepoDescTintCopy"
android:textColor="@color/colorWhite"
android:textSize="14sp"
android:textSize="16sp"
android:layout_marginTop="10dp" />
<EditText
......@@ -121,7 +121,7 @@
android:labelFor="@+id/newRepoDescription"
android:scrollbars="vertical"
android:gravity="top|start"
android:textSize="14sp"
android:textSize="16sp"
android:textColor="@color/colorWhite"
android:textColorHint="@color/colorWhite"
android:inputType="textMultiLine"
......@@ -132,7 +132,7 @@
android:layout_height="wrap_content"
android:text="@string/newRepoDescInfo"
android:textColor="@color/colorWhite"
android:textSize="12sp"
android:textSize="14sp"
android:gravity="end" />
<CheckBox
......@@ -141,7 +141,7 @@
android:layout_height="wrap_content"
android:text="@string/newRepoPrivateCopy"
android:checked="true"
android:textSize="14sp"
android:textSize="16sp"
android:layout_marginTop="10dp"
android:theme="@style/checkBoxTheme"
android:textColor="@color/colorWhite"/>
......
......@@ -18,6 +18,8 @@
tools:context=".activities.MainActivity"
android:theme="@style/AppTheme"
android:fitsSystemWindows="true"
android:layout_margin="20dp"
android:gravity="start"
android:id="@+id/aboutFrame">
<ImageView
......@@ -35,8 +37,6 @@
android:layout_height="wrap_content"
android:text="@string/app_name"
android:layout_marginTop="5dp"
android:layout_weight="1"
android:maxLines="1"
android:textSize="24sp"
android:textColor="@color/colorWhite"
android:layout_gravity="center_horizontal"/>
......@@ -47,9 +47,7 @@
android:layout_height="wrap_content"
android:text="@string/appAuthor"
android:layout_marginTop="5dp"
android:layout_weight="1"
android:maxLines="1"
android:textSize="12sp"
android:textSize="14sp"
android:textColor="@color/colorWhite"
android:layout_gravity="center_horizontal"/>
......@@ -58,22 +56,18 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="30dp"
android:layout_weight="1"
android:maxLines="1"
android:textSize="12sp"
android:textSize="14sp"
android:textColor="@color/colorWhite"
android:layout_gravity="center_horizontal"/>
/>
<TextView
android:id="@+id/appBuild"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:layout_weight="1"
android:maxLines="1"
android:textSize="12sp"
android:textSize="14sp"
android:textColor="@color/colorWhite"
android:layout_gravity="center_horizontal"/>
/>
<TextView
android:id="@+id/appLicense"
......@@ -82,10 +76,9 @@
android:text="@string/appLicense"
android:layout_marginTop="10dp"
android:layout_weight="1"
android:maxLines="1"
android:textSize="12sp"
android:textSize="14sp"
android:textColor="@color/colorWhite"
android:layout_gravity="center_horizontal"/>
/>
<TextView
android:id="@+id/appWebsite"
......@@ -94,10 +87,8 @@
android:text="@string/appWebsite"
android:layout_marginTop="10dp"
android:layout_weight="1"
android:maxLines="1"
android:textSize="12sp"
android:textSize="14sp"
android:textColor="@color/colorWhite"
android:layout_gravity="center_horizontal"
android:autoLink="web" />
<TextView
......@@ -106,11 +97,8 @@
android:layout_height="wrap_content"
android:text="@string/appRepo"
android:layout_marginTop="10dp"
android:layout_weight="1"
android:maxLines="1"
android:textSize="12sp"
android:textSize="14sp"
android:textColor="@color/colorWhite"
android:layout_gravity="center_horizontal"
android:autoLink="web" />
<TextView
......@@ -119,11 +107,8 @@
android:layout_height="wrap_content"
android:text="@string/commitPage"
android:layout_marginTop="10dp"
android:layout_weight="1"
android:maxLines="1"
android:textSize="12sp"
android:textSize="14sp"
android:textColor="@color/colorWhite"
android:layout_gravity="center_horizontal"
android:autoLink="web" />
<Button
......@@ -134,10 +119,7 @@
android:layout_marginTop="15dp"
android:paddingStart="10dp"
android:paddingEnd="10dp"
android:layout_weight="1"
android:maxLines="1"
android:textSize="12sp"
android:layout_gravity="center_horizontal"
android:textSize="14sp"
android:background="@drawable/shape_buttons"
android:textColor="@color/btnTextColor"
android:autoLink="web"
......
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/backgroundColor">
android:background="@color/backgroundColor" >
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
tools:context=".activities.MainActivity"
android:theme="@style/AppTheme"
android:fitsSystemWindows="true"
android:layout_margin="20dp"
android:gravity="start"
android:id="@+id/aboutFrame">
<ImageView
android:id="@+id/userAvatar"
android:layout_width="80dp"
android:layout_height="80dp"
android:layout_gravity="center_horizontal"
android:layout_marginTop="30dp"
android:baselineAligned="false"
android:contentDescription="@string/logo"
android:src="@mipmap/app_logo_round" />
<TextView
android:id="@+id/userFullname"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/wip"
android:layout_centerInParent="true"
android:text="@string/app_name"
android:layout_marginTop="16dp"
android:layout_marginBottom="16dp"
android:textSize="20sp"
android:textColor="@color/colorWhite"
android:textSize="30sp" />
android:layout_gravity="center_horizontal"/>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginTop="10dp"
android:background="@color/divider" />
<TextView
android:drawableStart="@drawable/ic_verified_user"
android:drawablePadding="15dp"
android:id="@+id/userLogin"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:textSize="14sp"
android:textColor="@color/colorWhite" />
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginTop="10dp"
android:background="@color/divider" />
<TextView
android:drawableStart="@drawable/ic_email"
android:drawablePadding="15dp"
android:id="@+id/userEmail"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:textSize="14sp"
android:textColor="@color/colorWhite" />
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginTop="10dp"
android:background="@color/divider" />
<TextView
android:drawableStart="@drawable/ic_language"
android:drawablePadding="15dp"
android:id="@+id/userLang"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:textSize="14sp"
android:textColor="@color/colorWhite" />
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginTop="10dp"
android:background="@color/divider" />
</LinearLayout>
</RelativeLayout>
\ No newline at end of file
......@@ -39,7 +39,7 @@
android:layout_marginBottom="5dp"
android:text="@string/orgName"
android:textColor="@color/white"
android:textSize="14sp" />
android:textSize="16sp" />
<TextView
android:id="@+id/orgDescription"
......@@ -48,7 +48,7 @@
android:layout_marginBottom="10dp"
android:text="@string/orgDescription"
android:textColor="@color/colorWhite"
android:textSize="12sp"
android:textSize="14sp"
android:visibility="gone" />
</LinearLayout>
......@@ -62,7 +62,7 @@
android:layout_margin="15dp"
android:text="@string/noDataOrg"
android:textColor="@color/white"
android:textSize="14sp"
android:textSize="16sp"
android:visibility="gone" />
</RelativeLayout>
......@@ -45,11 +45,11 @@
android:layout_marginBottom="5dp"
android:text="@string/repoName"
android:textColor="@color/white"
android:textSize="14sp" />
android:textSize="16sp" />
<ImageView
android:layout_height="14dp"
android:layout_width="14dp"
android:layout_height="20dp"
android:layout_width="20dp"
android:src="@drawable/ic_lock_24dp"
android:id="@+id/imageRepoType"
android:layout_marginTop="5dp"
......@@ -65,7 +65,7 @@
android:layout_marginBottom="5dp"
android:text="@string/repoFullname"
android:textColor="@color/colorWhite"
android:textSize="12sp" />
android:textSize="14sp" />
<TextView
android:id="@+id/repoDescription"
......@@ -74,7 +74,7 @@
android:layout_marginBottom="10dp"
android:text="@string/repoDescription"
android:textColor="@color/colorWhite"
android:textSize="12sp"
android:textSize="14sp"
android:visibility="gone" />
</LinearLayout>
......@@ -88,7 +88,7 @@
android:layout_margin="15dp"
android:text="@string/noData"
android:textColor="@color/white"
android:textSize="14sp"
android:textSize="16sp"
android:visibility="gone" />
</RelativeLayout>
......@@ -4,5 +4,5 @@
android:id="@android:id/text1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:textSize="14sp"
android:textSize="16sp"
android:textColor="@color/colorWhite" />
......@@ -4,10 +4,10 @@
<string name="appAuthor" translatable="false">Developer : M M Arif</string>
<string name="appEmail" translatable="false">gitnex@gitnex.com</string>
<string name="appLicense" translatable="false">License : GPLv3</string>
<string name="appRepo" translatable="false">Source code : https://gitlab.com/mmarif4u/gitnex</string>
<string name="appRepo" translatable="false">Source code\nhttps://gitlab.com/mmarif4u/gitnex</string>
<string name="appRepoIssuesLink" translatable="false">https://gitlab.com/mmarif4u/gitnex/issues</string>
<string name="appWebsite" translatable="false">Website : https://gitnex.com/</string>
<string name="commitPage" translatable="false">Gitea commit : https://github.com/go-gitea/gitea/commit/</string>
<string name="appWebsite" translatable="false">Website\nhttps://gitnex.com/</string>
<string name="commitPage" translatable="false">Gitea commit\nhttps://github.com/go-gitea/gitea/commit/</string>
<string name="supportLink" translatable="false">https://liberapay.com/mmarif/donate</string>
<!-- These strings does not need translations -->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment