Further Lokify settings UI

This commit is contained in:
Niels Andriesse
2019-07-17 09:45:20 +10:00
parent ab99874ede
commit bac4b86ec3
4 changed files with 23 additions and 2 deletions

View File

@@ -8,6 +8,7 @@ import android.support.v7.preference.Preference;
import android.support.v7.preference.PreferenceViewHolder;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
@@ -78,6 +79,8 @@ public class ProfilePreference extends Preference {
profileNameView.setText(profileName);
}
profileNameView.setVisibility(TextUtils.isEmpty(profileName) ? View.GONE : View.VISIBLE);
profileNumberView.setText(localAddress.toPhoneString());
}
}